update : 2015.11.03
php.shukuma.com검색:
|
EvPeriodic::__construct(PECL ev >= 0.2.0) EvPeriodic::__construct — Constructs EvPeriodic watcher object 설명
public
EvPeriodic::__construct
(
double
$offset
,
string
$interval
,
callable
$reschedule_cb
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )Constructs EvPeriodic watcher object and starts it automatically. EvPeriodic::createStopped() method creates stopped periodic watcher. 인수
반환값Returns EvPeriodic object on success. 예제Example #1 Periodic timer. Use reschedule callback
<?php Example #2 Periodic timer. Tick every 10.5 seconds starting at now
<?php Example #3 Hourly watcher
<?php 참고
|