« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for intervals (0.003 sec.)
関数のパラメータと引数 11388
« ユーザー定義関数 戻り値 » PHP Manual 関数 関数のパラメータと引数 検索 関数のパラメータと引数 関数のパラメータは、関数のシグネチャの中で宣言します。 引数のリストにより関数へ情報を渡すことができます。 このリストは、カンマで区切られた式のリス ... る場合、 ... が取り込むすべての引数はその型に一致していなければいけません。 例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
関数のパラメータと引数 10547
« ユーザー定義関数 戻り値 » PHP Manual 関数 関数のパラメータと引数 検索 関数のパラメータと引数 関数のパラメータは、関数のシグネチャの中で宣言します。 引数のリストにより関数へ情報を渡すことができます。 このリストは、カンマで区切られた式のリス ... る場合、 ... が取り込むすべての引数はその型に一致していなければいけません。 例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 10547
« EvStat::stat EvTimer::again » PHP Manual Ev The EvTimer class 検索 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 ... 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 ... remaining again event priority watcher timers timeout loop configured trigger seconds プロパティ callable stopped relative intervals hour ...
https://man.mtool.work/php/8.3/class.evtimer.html
The EvTimer class 8682
« EvStat::stat EvTimer::again » PHP Manual Ev The EvTimer class 検索 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 ... 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 6818
« EvSignal::set EvStat::attr » PHP Manual Ev The EvStat class 検索 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 sign ...
https://man.mtool.work/php/8.3/class.evstat.html
The EvStat class 6818
« EvSignal::set EvStat::attr » PHP Manual Ev The EvStat class 検索 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 sign ...
https://man.mtool.work/php/8.3/class.evstat.html
PREV 1 NEXT