検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 28 for Counter (0.026 sec.)
APCUIterator イテレータオブジェクトを作成する 12289
« APCUIterator APCUIterator::current » PHP Manual APCUIterator APCUIterator イテレータオブジェク ... struct() の例 <?php foreach (new APCUIterator ( '/^counter\./' ) as $counter ) { echo " $counter [ key ] : $c ... ounter [ value ] \n" ; apc_dec ( $counter [ 'key' ], $counter [ 'value' ]); } ?> 参考 apcu_e ...
https://man.plustar.jp/php/apcuiterator.construct.html - [similar]
数値アイテムの値を減らす 11667
« Memcached::__construct Memcached::decrementByKey » PHP Manual Memcached 数値アイテムの値を減ら ... -> addServer ( 'localhost' , 11211 ); $m -> set ( 'counter' , 5 ); $n = $m -> decrement ( 'counter' ); var_du ... mp ( $n ); $n = $m -> decrement ( 'counter' , 10 ); var_dump ( $n ); var_dump ( $m -> get ( ' ... counter' )); $m -> set ( 'counter' , 'abc' ); $n = $m -> increment ( 'counter' ); // ...
https://man.plustar.jp/php/memcached.decrement.html - [similar]
Unlocks the mutex 11667
« SyncMutex::lock SyncSemaphore » PHP Manual SyncMutex Unlocks the mutex SyncMutex::unlock (PECL ... ( bool $all = false ): bool Decreases the internal counter of a SyncMutex object. When the internal counter r ... タ all Specifies whether or not to set the internal counter to zero and therefore release the lock. 戻り値 成功 ... Unlocks , mutex , the , lock , unlock , internal , counter , all , example ...
https://man.plustar.jp/php/syncmutex.unlock.html - [similar]
数値アイテムの値を増やす 10929
« Memcached::getVersion Memcached::incrementByKey » PHP Manual Memcached 数値アイテムの値を増やす ... -> 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.plustar.jp/php/memcached.increment.html - [similar]
変数のスコープ 9799
« 定義済みの変数 可変変数 » PHP Manual 変数 変数のスコープ 変数のスコープ 変数のスコープは、その ... 変数を使う <?php class Foo { public static function counter () { static $counter = 0 ; $counter ++; return $co ... r ; } } class Bar extends Foo {} var_dump ( Foo :: counter ()); // int(1) var_dump ( Foo :: counter ()); // i ... nt(2) var_dump ( Bar :: counter ()); // int(3), PHP 8.1.0 より前のバージョンでは i ... nt(1) var_dump ( Bar :: counter ()); // int(4), PHP 8.1.0 より前のバージョンでは i ...
https://man.plustar.jp/php/language.variables.scope.html - [similar]
下位互換性のない変更点 9274
« 新しいグローバル定数 PHP 8.1.x で推奨されなくなる機能 » PHP Manual PHP 8.0.x から PHP 8.1.x へ ... なりました。 <?php class A { public static function counter () { static $counter = 0 ; $counter ++; return $co ... unter ; } } class B extends A {} var_dump ( A :: counter ()); // int(1) var_dump ( A :: counter ()); // int ... (2) var_dump ( B :: counter ()); // int(3), 以前のバージョンでは int(1) var_du ... mp ( B :: counter ()); // int(4), 以前のバージョンでは int(2) ?> これ ...
https://man.plustar.jp/php/migration81.incompatible.html - [similar]
変数を古い値と比較して新しい値を代入する 8963
« wincache_ucache_add wincache_ucache_clear » PHP Manual WinCache 関数 変数を古い値と比較して新し ... ucache_cas() の使用法 <?php wincache_ucache_set ( 'counter' , 2922 ); var_dump ( wincache_ucache_cas ( 'count ... ' , 2922 , 1 )); var_dump ( wincache_ucache_get ( 'counter' )); ?> 上の例の出力は以下となります。 bool(true) ...
https://man.plustar.jp/php/function.wincache-ucache-cas.html - [similar]
Waits for an exclusive lock 8652
« SyncMutex::__construct SyncMutex::unlock » PHP Manual SyncMutex Waits for an exclusive lock Sy ... already acquired, then this increments an internal counter. パラメータ wait The number of milliseconds to wai ... , exclusive , SyncMutex , Waits , wait , unlock , counter , Unlocks , 参考 , example ...
https://man.plustar.jp/php/syncmutex.lock.html - [similar]
Sets a callback for specified URI 8225
« EventHttp::setAllowedMethods EventHttp::setDefaultCallback » PHP Manual EventHttp Sets a callb ... */ function _http_dump ( $req , $data ) { static $counter = 0 ; static $max_requests = 2 ; if (++ $counter > ... = $max_requests ) { echo "Counter reached max requests $max_requests . Exiting\n" ; ...
https://man.plustar.jp/php/eventhttp.setcallback.html - [similar]
オブジェクトの要素数を数える 8127
« Countable OuterIterator » PHP Manual Countable オブジェクトの要素数を数える Countable::count ( ... ます。 例 例1 Countable::count() の例 <?php class myCounter implements Countable { private $count = 0 ; public ... unction count () { return ++ $this -> count ; } } $counter = new myCounter ; for( $i = 0 ; $i < 10 ; ++ $i ) ... { echo "I have been count()ed " . count ( $counter ) . " times\n" ; } ?> 上の例の出力は、 たとえば以下 ...
https://man.plustar.jp/php/countable.count.html - [similar]
PREV 1 2 3 NEXT