検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 21 for cmp (0.001 sec.)
数を比較する 14325
« gmp_clrbit gmp_com » PHP Manual GMP 関数 数を比較する gmp_cmp (PHP 4 >= 4.0.4, PHP 5, PHP 7, P ... HP 8) gmp_cmp — 数を比較する 説明 gmp_cmp ( GMP | int | string $ ... にゼロ、 a < b の場合に負の値を返します。 例 例1 gmp_cmp() の例 <?php $cmp1 = gmp_cmp ( "1234" , "1000" ); ... // より大きい $cmp2 = gmp_cmp ( "1000" , "1234" ); // より小さい $cmp ... 3 = gmp_cmp ( "1234" , "1234" ); // 等しい echo " $cmp1 $cmp2 ...
https://man.plustar.jp/php/function.gmp-cmp.html - [similar]
Compare and set the value of the atomic object. 11416
« Swoole\Atomic::add Swoole\Atomic::__construct » PHP Manual Swoole\Atomic Compare and set the v ... alue of the atomic object. Swoole\Atomic::cmpset (PECL swoole >= 1.9.0) Swoole\Atomic::cmpset — ... e of the atomic object. 説明 public Swoole\Atomic::cmpset ( int $cmp_value , int $new_value ): int パラメ ... ータ cmp_value The value to compare with the current value ... value The value to set to the atomic object if the cmp_value is the same as the current value of the atom ...
https://man.plustar.jp/php/swoole-atomic.cmpset.html - [similar]
ユーザー定義の比較関数を使用して、配列を値でソートする 10452
« uksort クラス/オブジェクト » PHP Manual 配列 関数 ユーザー定義の比較関数を使用して、配列を値で ... うになりました。 例 例1 usort() の例 <?php function cmp ( $a , $b ) { if ( $a == $b ) { return 0 ; } retur ... ; } $a = array( 3 , 2 , 5 , 6 , 1 ); usort ( $a , "cmp" ); foreach ( $a as $key => $value ) { echo " $key ... 宇宙船演算子を使うこともできます。 <?php function cmp ( $a , $b ) { return $a <=> $b ; } $a = array( 3 , ... 2 , 5 , 6 , 1 ); usort ( $a , "cmp" ); foreach ( $a as $key => $value ) { echo " $key ...
https://man.plustar.jp/php/function.usort.html - [similar]
2 つの variant を比較する 9488
« variant_cat variant_date_from_timestamp » PHP Manual COM関数 2 つの variant を比較する variant ... _cmp (PHP 5, PHP 7, PHP 8) variant_cmp — 2 つの variant ... を比較する 説明 variant_cmp ( mixed $left , mixed $right , int $locale_id = LO ... のいずれかを返します。 Variant の比較結果 値 意味 VARCMP_LT left は right より小さい VARCMP_EQ left は righ ... t と等しい VARCMP_GT left は right より大きい VARCMP_NULL left と ri ...
https://man.plustar.jp/php/function.variant-cmp.html - [similar]
1 の補数を計算する 8845
« gmp_cmp gmp_div_q » PHP Manual GMP 関数 1 の補数を計算する gmp_com (PHP 4 >= 4.0.4, PHP 5, PHP ... 。 -1235 関連キーワード: 補数 , 計算 , num , 数値 , cmp , 関数 , int , string , パラメータ , オブジェクト ...
https://man.plustar.jp/php/function.gmp-com.html - [similar]
SQL文で collate 関数として使うユーザー定義関数を登録する 8186
« PDO::sqliteCreateAggregate PDO::sqliteCreateFunction » PHP Manual SQLite (PDO) SQL文で collate ... て適用するユーザー定義関数。 2つの値を受けとり、 strcmp() 関数が返すのと同じ値を返します。つまり、 はじめの ... ('a2')" ); $db -> sqliteCreateCollation ( 'NATURAL_CMP' , 'strnatcmp' ); foreach ( $db -> query ( "SELECT ... ELECT col1 FROM test ORDER BY col1 COLLATE NATURAL_CMP" ) as $row ) { echo $row [ 'col1' ] . "\n" ; } ?> ...
https://man.plustar.jp/php/pdo.sqlitecreatecollation.html - [similar]
SQLのcollate関数として使うPHP関数を登録する 8186
« SQLite3::createAggregate SQLite3::createFunction » PHP Manual SQLite3 SQLのcollate関数として使 ... て適用するユーザー定義関数。 2つの値を受けとり、 strcmp() 関数が返すのと同じ値を返します。つまり、 はじめの ... Lite3 データベースの中で、シーケンスを並べる strnatcmp() 関数を登録します。 <?php $db = new SQLite3 ( ":m ... ALUES ('a2')" ); $db -> createCollation ( 'NATURAL_CMP' , 'strnatcmp' ); $defaultSort = $db -> query ( "S ... ELECT col1 FROM test ORDER BY col1 COLLATE NATURAL_CMP" ); echo "default:\n" ; while ( $row = $defaultSor ...
https://man.plustar.jp/php/sqlite3.createcollation.html - [similar]
ユーザー定義の比較関数を用いて、キーで配列をソートする 8118
« uasort usort » PHP Manual 配列 関数 ユーザー定義の比較関数を用いて、キーで配列をソートする uks ... うになりました。 例 例1 uksort() の例 <?php function cmp ( $a , $b ) { $a = preg_replace ( '@^(a|an|the) @' ... lace ( '@^(a|an|the) @' , '' , $b ); return strcasecmp ( $a , $b ); } $a = array( "John" => 1 , "the Eart ... an apple" => 3 , "a banana" => 4 ); uksort ( $a , "cmp" ); foreach ( $a as $key => $value ) { echo " $key ...
https://man.plustar.jp/php/function.uksort.html - [similar]
ユーザー定義の比較関数を使って、キーでエントリをソートする 8033
« ArrayObject::uasort ArrayObject::unserialize » PHP Manual ArrayObject ユーザー定義の比較関数を ... 。 例 例1 ArrayObject::uksort() の例 <?php function cmp ( $a , $b ) { $a = preg_replace ( '@^(a|an|the) @' ... lace ( '@^(a|an|the) @' , '' , $b ); return strcasecmp ( $a , $b ); } $array = array( "John" => 1 , "the ... ArrayObject ( $array ); $arrayObject -> uksort ( 'cmp' ); foreach ( $arrayObject as $key => $value ) { e ...
https://man.plustar.jp/php/arrayobject.uksort.html - [similar]
ユーザー定義の比較関数でエントリをソートし、キーとの対応は保持する 7949
« ArrayObject::setIteratorClass ArrayObject::uksort » PHP Manual ArrayObject ユーザー定義の比較関 ... ayObject::uasort() の例 <?php // 比較関数 function cmp ( $a , $b ) { if ( $a == $b ) { return 0 ; } retur ... ソートと、その結果の表示 $arrayObject -> uasort ( 'cmp' ); print_r ( $arrayObject ); ?> 上の例の出力は以下 ...
https://man.plustar.jp/php/arrayobject.uasort.html - [similar]
PREV 1 2 3 NEXT