i use the Parallel PHP library, but i don't know how to pass variable of my script to a parallel thread. I view in the documentation that i must pass a array argument in the "run" function but i don't know how to access to the argument value.
My script :
<?php
$runtime = new \parallel\Runtime();
$future1 = $runtime->run(function(){
echo argv
},array(22,'hi')); // here the argv but how to access in this in $future1 ?
?>
The documentation link about parallel run function : https://www.php.net/manual/en/parallel-runtime.run.php
Thanks.