PHP code example of danack / looping-exec
1. Go to this page and download the library: Download danack/looping-exec 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/ */
danack / looping-exec example snippets
nction LoopingExec\continuallyExecuteCallable;
$fn = function () {
static $count = 0;
echo "Hello world: $count\n";
$count += 1;
};
continuallyExecuteCallable(
$fn,
5,
1000,
0
);
// output is:
// Hello world: 0
// Hello world: 1
// Hello world: 2
// Hello world: 3
// Hello world: 4