PHP code example of xiaoman / parse-crontab
1. Go to this page and download the library: Download xiaoman/parse-crontab library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xiaoman / parse-crontab example snippets
¢ php test.php "8 * * * *" 0
'2017-11-14 16:08:45'
array (
1 => 1,
)%
¢ php test.php "*/15 9 * * * *" 0
'2017-11-14 16:09:12'
array (
0 => 0,
15 => 15,
30 => 30,
45 => 45,
)%