PHP code example of fengdangxing / php-fork
1. Go to this page and download the library: Download fengdangxing/php-fork 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/ */
fengdangxing / php-fork example snippets
Fork::Process(function(){
//业务代码-子进程执行
})
#有参数
Fork::Process(function() use ($a,$b){
//业务代码-子进程执行
})