« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for launched (0.001 sec.)
Constructs an EvTimer watcher object 11095
« EvTimer::again EvTimer::createStopped » PHP Manual EvTimer Constructs an EvTimer watcher object 検索 EvTimer::__construct (PECL ev >= 0.2.0) EvTimer::__construct — Constructs an EvTimer watcher object 説明 public function EvTimer::__const ... ng each second // until we manually stop it $w2 = new EvTimer ( 2 , 1 , function ( $w ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // Stop the watcher after 5 iterations Ev :: iter ... :: run (); echo "END\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 2 seconds elapsed is called every second, is launched after 2 seconds iteration = 1 is called every second, is launched after 2 seconds iteration = 2 is called every second, is ... launched after 2 seconds iteration = 3 is called every second, is launched after 2 seconds iteration = 4 is called every second, is ...
https://man.mtool.work/php/8.3/evtimer.construct.html
Constructs an EvTimer watcher object 11095
« EvTimer::again EvTimer::createStopped » PHP Manual EvTimer Constructs an EvTimer watcher object 検索 EvTimer::__construct (PECL ev >= 0.2.0) EvTimer::__construct — Constructs an EvTimer watcher object 説明 public function EvTimer::__const ... ng each second // until we manually stop it $w2 = new EvTimer ( 2 , 1 , function ( $w ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // Stop the watcher after 5 iterations Ev :: iter ... :: run (); echo "END\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 2 seconds elapsed is called every second, is launched after 2 seconds iteration = 1 is called every second, is launched after 2 seconds iteration = 2 is called every second, is ... launched after 2 seconds iteration = 3 is called every second, is launched after 2 seconds iteration = 4 is called every second, is ...
https://man.mtool.work/php/8.3/evtimer.construct.html
例 7397
« インストール手順 ウォッチャー » PHP Manual Ev 例 検索 例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、そ ... 後は // 手で止めるまで 1 秒おきに繰り返します $w2 = new EvTimer ( 2 , 1 , function ( $w ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // 5 回繰り返したあとでウォッチャーを止めます Ev ... :: run (); echo "END\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 2 seconds elapsed is called every second, is launched after 2 seconds iteration = 1 is called every second, is launched after 2 seconds iteration = 2 is called every second, is ... launched after 2 seconds iteration = 3 is called every second, is launched after 2 seconds iteration = 4 is called every second, is ...
https://man.mtool.work/php/8.3/ev.examples.html
例 7397
« インストール手順 ウォッチャー » PHP Manual Ev 例 検索 例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、そ ... 後は // 手で止めるまで 1 秒おきに繰り返します $w2 = new EvTimer ( 2 , 1 , function ( $w ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // 5 回繰り返したあとでウォッチャーを止めます Ev ... :: run (); echo "END\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 2 seconds elapsed is called every second, is launched after 2 seconds iteration = 1 is called every second, is launched after 2 seconds iteration = 2 is called every second, is ... launched after 2 seconds iteration = 3 is called every second, is launched after 2 seconds iteration = 4 is called every second, is ...
https://man.mtool.work/php/8.3/ev.examples.html
PREV 1 NEXT