« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for anumber (0.001 sec.)
apcu_dec — 保存した数値を減らす | PHP 8.3 9357
apcu_dec (PECL apcu >= 4.0.0) apcu_dec — 保存した数値を減らす 説明 function apcu_dec ( string $key , int $step = 1 , bool &$success = ? , int $ttl = 0 ): int | false 保存した整数値を減らします。 パラメータ key 減らしたい値のキー。 step 減ら ... 敗した場合に false を返します 例 例1 apcu_dec() の例 <?php echo "Let's do something with success" , PHP_EOL ; apcu_store ( 'anumber' , 42 ); echo apcu_fetch ( 'anumber' ), PHP_EOL ; echo apcu_dec ( 'anumber' ), PHP_EOL ; echo apcu_dec ( 'anumber' , 10 ), ... PHP_EOL ; echo apcu_dec ( 'anumber' , 10 , $success ), PHP_EOL ; var_dump ( $success ); echo "Now, let's fail" , PHP_EOL , PHP_EOL ; apcu_store ( 'astring' , ...
https://man.mtool.work/php/8.3/function.apcu-dec.html
apcu_inc — 保存した数値を増やす | PHP 8.3 9357
apcu_inc (PECL apcu >= 4.0.0) apcu_inc — 保存した数値を増やす 説明 function apcu_inc ( string $key , int $step = 1 , bool &$success = ? , int $ttl = 0 ): int | false 保存した整数値を増やします。 パラメータ key 増やしたい値のキー。 step 増や ... 敗した場合に false を返します 例 例1 apcu_inc() の例 <?php echo "Let's do something with success" , PHP_EOL ; apcu_store ( 'anumber' , 42 ); echo apcu_fetch ( 'anumber' ), PHP_EOL ; echo apcu_inc ( 'anumber' ), PHP_EOL ; echo apcu_inc ( 'anumber' , 10 ), ... PHP_EOL ; echo apcu_inc ( 'anumber' , 10 , $success ), PHP_EOL ; var_dump ( $success ); echo "Now, let's fail" , PHP_EOL , PHP_EOL ; apcu_store ( 'astring' , ...
https://man.mtool.work/php/8.3/function.apcu-inc.html
PREV 1 NEXT