« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for intervals (0.001 sec.)
関数のパラメータと引数 | PHP 8.3 11607
関数のパラメータと引数 関数のパラメータは、関数のシグネチャの中で宣言します。 引数のリストにより関数へ情報を渡すことができます。 このリストは、カンマで区切られた式のリストです。 引数の評価は、関数が実際にコールされる前に、 左から右の順番で行 ... る場合、 ... が取り込むすべての引数はその型に一致していなければいけません。 例12 型宣言つきの可変長引数 <?php function total_intervals ( $unit , DateInterval ... $intervals ) { $time = 0 ; foreach ( $intervals as $interval ) { $time += $interval -> $unit ; ... } return $time ; } $a = new DateInterval ( 'P1D' ); $b = new DateInterval ( 'P2D' ); echo total_intervals ( 'd' , $a , $b ). ' days' ; // これは失敗します。null は DateInterval オブジェクトではないからです。 echo total_intervals ... ( 'd' , null ); 上の例の出力は以下となります。 3 days Fatal error: Uncaught TypeError: total_intervals(): Argument #2 must be of type DateInterval, null given, called in script on line 15 and defined in script:2 Stack trace: ...
https://man.mtool.work/php/8.3/functions.arguments.html
The EvTimer class | PHP 8.3 9208
The EvTimer class (PECL ev >= 0.2.0) はじめに EvTimer watchers are simple relative timers that generate an event after a given time, and optionally repeating in regular intervals after that. The timers are based on real time, that is, if on ... g drift, that is, if a timer is configured to trigger every 10 seconds, then it will normally trigger at exactly 10 second intervals. If, however, the script cannot keep up with the timer because it takes longer than those 10 seconds to do) the timer will ...
https://man.mtool.work/php/8.3/class.evtimer.html
The EvStat class | PHP 8.3 7050
The EvStat class (PECL ev >= 0.2.0) はじめに EvStat monitors a file system path for attribute changes. It calls stat() on that path in regular intervals (or when the OS signals it changed) and sees if it changed compared to the last time, i ...
https://man.mtool.work/php/8.3/class.evstat.html
PREV 1 NEXT