« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 49 for tests (0.002 sec.)
RarException::setUsingExceptions — 例外によるエラー処理の有効化および無効化を行... 13175
RarException::setUsingExceptions (PECL rar >= 2.0.0) RarException::setUsingExceptions — 例外によるエラー処理の有効化および無効化を行う 説明 public static function RarException::setUsingExceptions ( bool $using_exceptions ): void 引数に true ... ol(false) Warning: RarArchive::open(): Failed to open does_not_exist.rar: ERAR_EOPEN (file open error) in C:\php_rar\trunk\tests\test.php on line 3 bool(false) bool(true) Fatal error: Uncaught exception 'RarException' with message 'unRAR internal erro ... r: Failed to open does_not_exist.rar: ERAR_EOPEN (file open error)' in C:\php_rar\trunk\tests\test.php:8 Stack trace: #0 C:\php_rar\trunk\tests\test.php(8): RarArchive::open('does_not_exist....') #1 {main} thrown in ... C:\php_rar\trunk\tests\test.php on line 8 参考 RarException::isUsingExceptions() - 例外によるエラー処理を使っているかどうかを調べる 他のマニュアル ...
https://man.mtool.work/php/8.3/rarexception.setusingexceptions.html
is_numeric — 変数が数字または数値形式の文字列であるかを調べる | PHP 8.3 11938
is_numeric (PHP 4, PHP 5, PHP 7, PHP 8) is_numeric — 変数が数字または数値形式の文字列であるかを調べる 説明 function is_numeric ( mixed $value ): bool 指定した変数が数値または 数値形式の文字列 であるかどうかを調べます。 パラメータ value 評価 ... の関数は true を返すようになりました。 これより前のバージョンでは、 false を返していました。 例 例1 is_numeric() の例 <?php $tests = array( "42" , 1337 , 0x539 , 02471 , 0b10100111001 , 1337e0 , "0x539" , "02471" , "0b10100111001" , "1337e0" , "not nume ... ric" , array(), 9.1 , null , '' , ); foreach ( $tests as $element ) { if ( is_numeric ( $element )) { echo var_export ( $element , true ) . " is numeric" , PHP_EOL ; } else { e ... eric array ( ) is NOT numeric 9.1 is numeric NULL is NOT numeric '' is NOT numeric 例2 空白文字と is_numeric() 関数 <?php $tests = [ " 42" , "42 " , "\u{A0}9001" , // non-breaking space "9001\u{A0}" , // non-breaking space ]; foreach ( $tests as $elem ...
https://man.mtool.work/php/8.3/function.is-numeric.html
テスト | PHP 8.3 9689
テスト OCI8 のテストスイートは ext/oci8/tests にあります。 OCI8 のテストを実行すると、テストが失敗したときのログがこのディレクトリに記録されます。 PHP のテストを実行する前に、 details.inc を編集して $user、$password と接続文字列 $dbase を編 ... hp_src_directory $ make test OCI8 のテストだけを実行する場合は、このようにします。 $ cd your_php_src_directory $ make test TESTS=ext/oci8 テストが終了したら、失敗したテストを見直します。 遅いシステムで実行した場合は、 run-tests.php のデフォルトのタイム ...
https://man.mtool.work/php/8.3/oci8.test.html
QuickHashIntHash::exists — This method checks whether a key is part of the hash... 9689
QuickHashIntHash::exists (PECL quickhash >= Unknown) QuickHashIntHash::exists — This method checks whether a key is part of the hash 説明 public function QuickHashIntHash::exists ( int $key ): bool This method checks whether an entry with t ... ments: " , microtime ( true ), "\n" ; foreach( $existingEntries as $key ) { $hash -> add ( $key , 56 ); } echo "Doing 1000 tests: " , microtime ( true ), "\n" ; foreach( $testForEntries as $key ) { $foundCount += $hash -> exists ( $key ); } echo "Done ... 上の例の出力は、 たとえば以下のようになります。 Creating hash: 1263588703.0748 Adding elements: 1263588703.0757 Doing 1000 tests: 1263588703.7851 Done, 898 found: 1263588703.7897 他のマニュアルの関連ページ Linux JM hash(3) Linux JM rand(3) DuckDB Loop ...
https://man.mtool.work/php/8.3/quickhashinthash.exists.html
QuickHashIntSet::exists — This method checks whether a key is part of the set |... 9689
QuickHashIntSet::exists (PECL quickhash >= Unknown) QuickHashIntSet::exists — This method checks whether a key is part of the set 説明 public function QuickHashIntSet::exists ( int $key ): bool This method checks whether an entry with the p ... ng elements: " , microtime ( true ), "\n" ; foreach( $existingEntries as $key ) { $set -> add ( $key ); } echo "Doing 1000 tests: " , microtime ( true ), "\n" ; foreach( $testForEntries as $key ) { $foundCount += $set -> exists ( $key ); } echo "Done, ... 上の例の出力は、 たとえば以下のようになります。 Creating set: 1263588703.0748 Adding elements: 1263588703.0757 Doing 1000 tests: 1263588703.7851 Done, 898 found: 1263588703.7897 他のマニュアルの関連ページ Linux JM rand(3) DuckDB Loops ...
https://man.mtool.work/php/8.3/quickhashintset.exists.html
ImagickPixel::isSimilar — この色と別の色の差を調べる | PHP 8.3 9448
ImagickPixel::isSimilar (PECL imagick 2, PECL imagick 3) ImagickPixel::isSimilar — この色と別の色の差を調べる 説明 public function isSimilar ( ImagickPixel $color , float $fuzz ): bool } 警告 この関数は、 現在のところ詳細な情報はありません。 ... 値は、3 の平方根 (1.732) となります。 戻り値 成功した場合に true を返します。 例 例1 ImagickPixel::isSimilar() <?php // The tests below are written with the maximum distance expressed as 255 // so we need to scale them by the square root of 3 - the dia ... gonal length // of a unit cube. $root3 = 1.732050807568877 ; $tests = array( [ 'rgb(245, 0, 0)' , 'rgb(255, 0, 0)' , 9 / $root3 , false ,], [ 'rgb(245, 0, 0)' , 'rgb(255, 0, 0)' , 10 / $root ... r 2 </th> <th> Test distance * 255 </th> <th> Is within distance </th> </tr> </thead>" ; $output .= "<tbody>" ; foreach ( $tests as $testInfo ) { $color1 = $testInfo [ 0 ]; $color2 = $testInfo [ 1 ]; $distance = $testInfo [ 2 ]; $expectation = $testIn ...
https://man.mtool.work/php/8.3/imagickpixel.issimilar.html
RarArchive::__toString — テキスト形式で取得する | PHP 8.3 9448
RarArchive::__toString (PECL rar >= 2.0.0) RarArchive::__toString — テキスト形式で取得する 説明 public function RarArchive::__toString (): string この RarArchive オブジェクトの文字列表現を取得します。 現在表示されるのは、オープンしているアー ... arch -> close (); echo $rar_arch . "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" (closed) 他のマニュアルの関連ページ Linux JM arc ...
https://man.mtool.work/php/8.3/rararchive.tostring.html
RarArchive::close — Rar アーカイブをクローズし、全リソースを解放する | PHP 8.3 8950
RarArchive::close rar_close (PECL rar >= 2.0.0) RarArchive::close -- rar_close — Rar アーカイブをクローズし、全リソースを解放する 説明 オブジェクト指向型 (メソッド) public function RarArchive::close (): bool 手続き型: function rar_close ( R ... arch -> close (); echo $rar_arch . "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" (closed) 例2 手続き型 <?php $rar_arch = rar_open ...
https://man.mtool.work/php/8.3/rararchive.close.html
RarArchive::isSolid — RAR アーカイブがソリッドであるかどうかを調べる | PHP 8.3 8950
RarArchive::isSolid rar_solid_is (PECL rar >= 2.0.0) RarArchive::isSolid -- rar_solid_is — RAR アーカイブがソリッドであるかどうかを調べる 説明 オブジェクト指向型 (メソッド) public function RarArchive::isSolid (): bool 手続き型: function rar ... h2 -> isSolid ()? 'yes' : 'no' ) . "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 RAR Archive "C:\php_rar\trunk\tests\store_method.rar": no RAR Archive "C:\php_rar\trunk\tests\solid.rar": yes 例2 手続き型 <?php $arch1 = rar_open ( "store_me ...
https://man.mtool.work/php/8.3/rararchive.issolid.html
The MongoDB\Driver\Query class | PHP 8.3 7697
The MongoDB\Driver\Query class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Query class is a value object that represents a database query. クラス概要 final class MongoDB\Driver\Query { /* メソッド */ final public function __construct ( ar ... } 目次 MongoDB\Driver\Query::__construct — Create a new Query 他のマニュアルの関連ページ DuckDB C++ API DuckDB Catch C/C++ Tests DuckDB Quickstart FastAPI クエリパラメータモデル FastAPI Request Parameters FastAPI パスパラメータと数値の検証 ...
https://man.mtool.work/php/8.3/class.mongodb-driver-query.html
PREV 1 2 3 4 5 NEXT