« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 71 for Increment (0.005 sec.)
Memcache::increment — 項目の値を増やす | PHP 8.3 13142
Memcache::increment memcache_increment (PECL memcache >= 0.2.0) Memcache::increment -- memcache_increment — 項目の値を増やす 説明 function Memcache::increment ( string $key , int $value = 1 ): int | false function memcache_increment ( Memca ... che $memcache , string $key , int $value = 1 ): int | false Memcache::increment() は、項目の値を value だけ増やします。 もし key に対応する値が数値ではなく、かつ 数値に変換できなかった場合は、その新しい ... 値は value となります。 Memcache::increment() は、指定した項目が 存在しない場合に項目を作成することは ありません 。 注意 : 圧縮して格納されている項目に対して Memcache ... ::increment() を使用しないでください。 なぜなら、それ以降の Memcache::get() のコールが 失敗してしまうからです。 パラメータ key 値を増や ...
https://man.mtool.work/php/8.3/memcache.increment.html
str_increment — 英数字からなる文字列をインクリメントする | PHP 8.3 11371
str_increment (PHP 8 >= 8.3.0) str_increment — 英数字からなる文字列をインクリメントする 説明 function str_increment ( string $string ): string 英数字からなる ASCII 文字列 string をインクリメントし、結果の文字列を返します。 パラメータ string ... ValueError がスローされます。 string が、英数字からなる ASCII 文字列でない場合、 ValueError がスローされます。 例 例1 str_increment() の基本的な使い方 <?php $str = 'ABC' ; var_dump ( str_increment ( $str )); ?> 上の例の出力は以下となります。 string(3) "A ... BD" 例2 繰り上げがある、 str_increment() の例 <?php $str = 'DZ' ; var_dump ( str_increment ( $str )); $str = 'ZZ' ; var_dump ( str_increment ( $str )); ?> 上の例 ...
https://man.mtool.work/php/8.3/function.str-increment.html
Memcached::increment — 数値アイテムの値を増やす | PHP 8.3 11315
Memcached::increment (PECL memcached >= 0.1.0) Memcached::increment — 数値アイテムの値を増やす 説明 public function Memcached::increment ( string $key , int $offset = 1 , int $initial_value = 0 , int $expiry = 0 ): int | false Memcached::increment ... を offset で指定しただけ増やします。 アイテムの値が数値でない場合はエラーとなります。 アイテムが存在しない場合、 Memcached::increment() は値を initial_value に設定します。 パラメータ key 増やしたいアイテムのキー。 offset 値を増やしたい量。 initial_value そ ... のアイテムに設定する有効期限。 戻り値 成功した場合にアイテムの新しい値、失敗した場合に false を返します。 例 例1 Memcached::increment() の例 <?php $m = new Memcached (); $m -> addServer ( 'localhost' , 11211 ); $m -> set ( 'counter' , 0 ); $m -> increment ... ( 'counter' ); $n = $m -> increment ( 'counter' , 10 ); var_dump ( $n ); $m -> set ( 'counter' , 'abc' ); $n = $m -> increment ( 'counter' ); // アイテムの値が ...
https://man.mtool.work/php/8.3/memcached.increment.html
cubrid_insert_id — Return the ID generated for the last updated AUTO_INCREMENT ... 10401
cubrid_insert_id (PECL CUBRID >= 8.3.0) cubrid_insert_id — Return the ID generated for the last updated AUTO_INCREMENT column 説明 function cubrid_insert_id ( resource $conn_identifier = ? ): string The cubrid_insert_id() function retrieves ... the ID generated for the AUTO_INCREMENT column which is updated by the previous INSERT query. It returns 0 if the previous query does not generate new rows, or FA ... LSE on failure. 注意 : CUBRID supports AUTO_INCREMENT for more than one columns in a table. In most cases, there will be a single AUTO_INCREMENT column in a table. If there are ... multiple AUTO_INCREMENT columns, this function should not be used even if it will return a value. パラメータ conn_identifier The connection identi ...
https://man.mtool.work/php/8.3/function.cubrid-insert-id.html
MongoDB\BSON\TimestampInterface::getIncrement — Returns the increment component... 9614
MongoDB\BSON\TimestampInterface::getIncrement (mongodb >=1.3.0) MongoDB\BSON\TimestampInterface::getIncrement — Returns the increment component of this TimestampInterface 説明 abstract public function MongoDB\BSON\TimestampInterface::getIncrement ... rement (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the increment component of this TimestampInterface. 警告 On 32-bit systems this method may return a negative number. Although the increm ... e consists of two unsigned 32-bit values, PHP can not represent these on 32-bit platforms. 参考 MongoDB\BSON\Timestamp::getIncrement() - Returns the increment component of this Timestamp ...
https://man.mtool.work/php/8.3/mongodb-bson-timestampinterface.getincrement.html
mysqli::$insert_id — 直近のクエリの AUTO_INCREMENT カラムで生成した値を返す | P... 9248
mysqli::$insert_id mysqli_insert_id (PHP 5, PHP 7, PHP 8) mysqli::$insert_id -- mysqli_insert_id — 直近のクエリの AUTO_INCREMENT カラムで生成した値を返す 説明 オブジェクト指向型 int | string $mysqli->insert_id ; 手続き型 function mysqli_ins ... ert_id ( mysqli $mysql ): int | string AUTO_INCREMENT 属性を持つカラムがあるテーブル上での INSERT や UPDATE クエリが生成したIDを返します。 INSERT 文が複数の行を変更する場合、 最 ... ます。 MySQL 関数 LAST_INSERT_ID() を使って INSERT や UPDATE を実行すると、 mysqli_insert_id() が返す値も変更されます。 AUTO_INCREMENT の値を生成するために LAST_INSERT_ID(expr) を使った場合、 生成された AUTO_INCREMENT の値ではなく、 最後の expr の値を返しま ... す。 直前のクエリが AUTO_INCREMENT の値を変更しなかった場合は、 0 を返します。 クエリが値を生成した直後に、 mysqli_insert_id() をコールする必要があります。 パ ...
https://man.mtool.work/php/8.3/mysqli.insert-id.html
call_user_func — 最初の引数で指定したコールバック関数をコールする | PHP 8.3 9066
call_user_func (PHP 4, PHP 5, PHP 7, PHP 8) call_user_func — 最初の引数で指定したコールバック関数をコールする 説明 function call_user_func ( callable $callback , mixed ...$args ): mixed パラメータ callback で指定したユーザー定義のコールバッ ... ラメータは 参照渡しではないことに注意しましょう。 例1 call_user_func() の例と参照 <?php error_reporting ( E_ALL ); function increment (& $var ) { $var ++; } $a = 0 ; call_user_func ( 'increment' , $a ); echo $a . "\n" ; // このようにしてもかまいません call ... _user_func_array ( 'increment' , array(& $a )); echo $a . "\n" ; // 関数名を変数として使ってもかまいません $increment = 'increment' ; $increment ( $a ); ... echo $a . "\n" ; ?> 上の例の出力は以下となります。 Warning: Parameter 1 to increment() expected to be a reference, value given in … 0 1 2 戻り値 コールバック関数の結果を返します。 例 例2 call_user_func() の例 ...
https://man.mtool.work/php/8.3/function.call-user-func.html
MongoDB\BSON\Timestamp::getIncrement — Returns the increment component of this ... 8939
MongoDB\BSON\Timestamp::getIncrement (mongodb >=1.3.0) MongoDB\BSON\Timestamp::getIncrement — Returns the increment component of this Timestamp 説明 final public function MongoDB\BSON\Timestamp::getIncrement (): int The increment component ... of a Timestamp is its least significant 32 bits, which denotes the incrementing ordinal for operations within a given second. This value is read as an unsigned 32-bit integer with big-endian byte ord ... a string representation of the unsigned decimal value. パラメータ この関数にはパラメータはありません。 戻り値 Returns the increment component of this Timestamp. 警告 On 32-bit systems this method may return a negative number. Although the increment and t ...
https://man.mtool.work/php/8.3/mongodb-bson-timestamp.getincrement.html
sodium_increment — 巨大な数をインクリメントする | PHP 8.3 8447
sodium_increment (PHP 7 >= 7.2.0, PHP 8) sodium_increment — 巨大な数をインクリメントする 説明 function sodium_increment ( string &$string ): void 文字列をリトルエンディアンで表現した符号なし整数として扱い、 その値をインクリメントします。定数 ...
https://man.mtool.work/php/8.3/function.sodium-increment.html
MongoDB\BSON\Timestamp::__construct — Construct a new Timestamp | PHP 8.3 8321
MongoDB\BSON\Timestamp::__construct (mongodb >=1.0.0) MongoDB\BSON\Timestamp::__construct — Construct a new Timestamp 説明 final public function MongoDB\BSON\Timestamp::__construct ( int $increment , int $timestamp ) パラメータ increment ( ... int ) 32-bit integer denoting the incrementing ordinal for operations within a given second. timestamp ( int ) 32-bit integer denoting seconds since the Unix epoch. エ ... p = new MongoDB\BSON\Timestamp ( 1234 , 5678 ); ?> 上の例の出力は以下となります。 object(MongoDB\BSON\Timestamp)#1 (2) { ["increment"]=> int(1234) ["timestamp"]=> int(5678) } 参考 » BSON Types: Timestamps 他のマニュアルの関連ページ DuckDB Timestamp with T ...
https://man.mtool.work/php/8.3/mongodb-bson-timestamp.construct.html
PREV 1 2 3 4 5 6 7 8 NEXT