« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 1333 for Dump (0.002 sec.)
bcround — 任意精度数値を丸める | PHP 8.3 6800
bcround (PHP 8 >= 8.4.0) bcround — 任意精度数値を丸める 説明 function bcround ( string $num , int $precision = 0 , RoundingMode $mode = RoundingMode::HalfAwayFromZero ): string num を、指定した precision (小数点以下の桁数)に丸めた値を返しま ... ローします: num が、BCMath で有効でない数値形式の文字列である場合 無効な mode を指定した場合 例 例1 bcround() の例 <?php var_dump ( bcround ( '3.4' )); var_dump ( bcround ( '3.5' )); var_dump ( bcround ( '3.6' )); var_dump ( bcround ( '3.6' , 0 )); var ... _dump ( bcround ( '5.045' , 2 )); var_dump ( bcround ( '5.055' , 2 )); var_dump ( bcround ( '345' , - 2 )); var_dump ( bcround ( ... '345' , - 3 )); var_dump ( bcround ( '678' , - 2 )); var_dump ( bcround ( '678' , - 3 )); ?> 上の例の出力は以下となります。 string(1) "3" string(1) ...
https://man.mtool.work/php/8.3/function.bcround.html
round — 浮動小数点数を丸める | PHP 8.3 6132
round (PHP 4, PHP 5, PHP 7, PHP 8) round — 浮動小数点数を丸める 説明 function round ( int | float $num , int $precision = 0 , int | RoundingMode $mode = RoundingMode::HalfAwayFromZero ): float num を、指定した precision (小数点以下の桁数)に ... りました。 8.0.0 num は、 数値への変換をサポートした内部オブジェクトを受け入れなくなりました。 例 例1 round() の例 <?php var_dump ( round ( 3.4 )); var_dump ( round ( 3.5 )); var_dump ( round ( 3.6 )); var_dump ( round ( 3.6 , 0 )); var_dump ( round ( ... 5.045 , 2 )); var_dump ( round ( 5.055 , 2 )); var_dump ( round ( 345 , - 2 )); var_dump ( round ( 345 , - 3 )); var_dump ( round ( 678 , - 2 )); ... var_dump ( round ( 678 , - 3 )); ?> 上の例の出力は以下となります。 float(3) float(4) float(4) float(4) float(5.05) float(5.06) floa ...
https://man.mtool.work/php/8.3/function.round.html
QuickHashIntHash::add — This method adds a new entry to the hash | PHP 8.3 5873
QuickHashIntHash::add (PECL quickhash >= Unknown) QuickHashIntHash::add — This method adds a new entry to the hash 説明 public function QuickHashIntHash::add ( int $key , int $value = ? ): bool This method adds a new entry to the hash, and ... . 例 例1 QuickHashIntHash::add() example <?php echo "without dupe checking\n" ; $hash = new QuickHashIntHash ( 1024 ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , 22 ) ); var_dump ( $hash -> exis ... ts ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , 12 ) ); echo "\nwith dupe checking\n" ; $hash = new QuickHashIntHash ... ( 1024 , QuickHashIntHash :: CHECK_FOR_DUPES ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , 78 ) ); var_dump ( $hash -> exis ...
https://man.mtool.work/php/8.3/quickhashinthash.add.html
QuickHashStringIntHash::add — This method adds a new entry to the hash | PHP 8.... 5873
QuickHashStringIntHash::add (No version information available, might only be in Git) QuickHashStringIntHash::add — This method adds a new entry to the hash 説明 public function QuickHashStringIntHash::add ( string $key , int $value ): bool ... ckHashStringIntHash::add() example <?php echo "without dupe checking\n" ; $hash = new QuickHashStringIntHash ( 1024 ); var_dump ( $hash ); var_dump ( $hash -> exists ( "four" ) ); var_dump ( $hash -> get ( "four" ) ); var_dump ( $hash -> add ( "four" ... , 22 ) ); var_dump ( $hash -> exists ( "four" ) ); var_dump ( $hash -> get ( "four" ) ); var_dump ( $hash -> add ( "four" , 12 ) ); echo "\nw ... ith dupe checking\n" ; $hash = new QuickHashStringIntHash ( 1024 , QuickHashStringIntHash :: CHECK_FOR_DUPES ); var_dump ( $hash ); var_dump ( $hash -> exists ( "four" ) ); var_dump ( $hash -> get ( "four" ) ); var_dump ( $hash -> add ( "four" ...
https://man.mtool.work/php/8.3/quickhashstringinthash.add.html
型演算子 | PHP 8.3 5784
型演算子 instanceof を使用して、 ある PHP 変数が特定の クラス のオブジェクトのインスタンスであるかどうかを調べます。 例1 クラスでの instanceof の使用法 <?php class MyClass { } class NotMyClass { } $a = new MyClass ; var_dump ( $a instanceof ... MyClass ); var_dump ( $a instanceof NotMyClass ); ?> 上の例の出力は以下となります。 bool(true) bool(false) instanceof は、ある変数が 特定の親ク ... したクラスでの instanceof の使用法 <?php class ParentClass { } class MyClass extends ParentClass { } $a = new MyClass ; var_dump ( $a instanceof MyClass ); var_dump ( $a instanceof ParentClass ); ?> 上の例の出力は以下となります。 bool(true) bool(true) ... を使用して、オブジェクトがクラスのインスタンスで ない かどうかを調べる方法 <?php class MyClass { } $a = new MyClass ; var_dump (!( $a instanceof stdClass )); ?> 上の例の出力は以下となります。 bool(true) 最後に、 instanceof は、ある変数が特定の インタ ...
https://man.mtool.work/php/8.3/language.operators.type.html
isset — 変数が宣言されていること、そして null とは異なることを検査する | PHP 8.... 5696
isset (PHP 4, PHP 5, PHP 7, PHP 8) isset — 変数が宣言されていること、そして null とは異なることを検査する 説明 function isset ( mixed $var , mixed ...$vars ): bool 変数がセットされているかを調べます。 これは変数が宣言されており、 null とは異 ... (isset( $var )) { echo "This var is set so I will print." , PHP_EOL ; } // 次の例では、isset() の戻り値を出力するため var_dump を // 使用している $a = "test" ; $b = "anothertest" ; var_dump (isset( $a )); // TRUE var_dump (isset( $a , $b )); // TRUE ... unset ( $a ); var_dump (isset( $a )); // FALSE var_dump (isset( $a , $b )); // FALSE $foo = NULL ; var_dump (isset( $foo )); // FALSE ?> この関数 ... 配列の要素に対する isset() の例 <?php $a = array ( 'test' => 1 , 'hello' => NULL , 'pie' => array( 'a' => 'apple' )); var_dump (isset( $a [ 'test' ])); // TRUE var_dump (isset( $a [ 'foo' ])); // FALSE var_dump (isset( $a [ 'hello' ])); // FALSE // ...
https://man.mtool.work/php/8.3/function.isset.html
QuickHashIntStringHash::add — This method adds a new entry to the hash | PHP 8.... 5696
QuickHashIntStringHash::add (PECL quickhash >= Unknown) QuickHashIntStringHash::add — This method adds a new entry to the hash 説明 public function QuickHashIntStringHash::add ( int $key , string $value ): bool This method adds a new entry ... ckHashIntStringHash::add() example <?php echo "without dupe checking\n" ; $hash = new QuickHashIntStringHash ( 1024 ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , "twenty two" ) ); var_dump ( $ha ... sh -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , "twelve" ) ); echo "\nwith dupe checking\n" ; $hash = new QuickHashI ... ntStringHash ( 1024 , QuickHashIntStringHash :: CHECK_FOR_DUPES ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , "seventy eight" ) ); var_dump ( ...
https://man.mtool.work/php/8.3/quickhashintstringhash.add.html
Yac::delete — Remove items from cache | PHP 8.3 5381
Yac::delete (PECL yac >= 1.0.0) Yac::delete — Remove items from cache 説明 public function Yac::delete ( string | array $key , int $delay = 0 ): bool Removes one or more items from the cache. 注意 : Deletion is implemented by marking the en ... e reclaims the slot. As a result, the used-slot count reported by Yac::info() does not decrease after a deletion, and Yac::dump() still lists the deleted entry until its slot is recycled; a non-zero ttl in the past marks a deleted or expired entry, s ... o when inspecting the output of Yac::dump() , such entries have to be filtered out by the caller. パラメータ key A string key, or an array of keys to be removed. de ... ey is missing, false is returned. 例 例1 Yac::delete() example <?php $yac = new Yac (); $yac -> set ( "foo" , "bar" ); var_dump ( $yac -> delete ( "foo" )); // bool(true): marked expired var_dump ( $yac -> get ( "foo" )); // bool(false): a miss from ...
https://man.mtool.work/php/8.3/yac.delete.html
db2_server_info — DB2 データベースサーバーの情報をプロパティに保持するオブジェ... 5265
db2_server_info (PECL ibm_db2 >= 1.1.1) db2_server_info — DB2 データベースサーバーの情報をプロパティに保持するオブジェクトを返す 説明 function db2_server_info ( resource $connection ): stdClass | false この関数は、IBM DB2、Cloudscape あるい ... nnect ( 'sample' , 'db2inst1' , 'ibmdb2' ); $server = db2_server_info ( $conn ); if ( $server ) { echo "DBMS_NAME: " ; var_dump ( $server -> DBMS_NAME ); echo "DBMS_VER: " ; var_dump ( $server -> DBMS_VER ); echo "DB_CODEPAGE: " ; var_dump ( $server ... -> DB_CODEPAGE ); echo "DB_NAME: " ; var_dump ( $server -> DB_NAME ); echo "INST_NAME: " ; var_dump ( $server -> INST_NAME ); echo "SPECIAL_CHARS: " ; var_dump ( $serve ... r -> SPECIAL_CHARS ); echo "KEYWORDS: " ; var_dump ( sizeof ( $server -> KEYWORDS ) ); echo "DFT_ISOLATION: " ; var_dump ( $server -> DFT_ISOLATION ); echo "ISOLATION_OPTION ...
https://man.mtool.work/php/8.3/function.db2-server-info.html
SeasLog::getRequestVariable — Get SeasLog request variable | PHP 8.3 5205
SeasLog::getRequestVariable (PECL seaslog >=1.9.0) SeasLog::getRequestVariable — Get SeasLog request variable 説明 public static function SeasLog::getRequestVariable ( int $key ): bool Get SeasLog request variable. パラメータ key Constant i ... tUri = 'uri' ; $sRequestMethod = 'method' ; $sClientIp = 'client_ip' ; $iErrorKey = 1000 ; $oSeasLog = new SeasLog (); var_dump ( $oSeasLog -> setRequestVariable ( SEASLOG_REQUEST_VARIABLE_DOMAIN_PORT , $sDomainPort )); var_dump ( $oSeasLog -> setReq ... uestVariable ( SEASLOG_REQUEST_VARIABLE_REQUEST_URI , $sRequestUri )); var_dump ( $oSeasLog -> setRequestVariable ( SEASLOG_REQUEST_VARIABLE_REQUEST_METHOD , $sRequestMethod )); var_dump ( $oSeasLog -> ... setRequestVariable ( SEASLOG_REQUEST_VARIABLE_CLIENT_IP , $sClientIp )); var_dump ( $oSeasLog -> setRequestVariable ( $iErrorKey , NULL )); var_dump ( $oSeasLog -> getRequestVariable ( SEASLOG_REQUEST_VAR ...
https://man.mtool.work/php/8.3/seaslog.getrequestvariable.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT