This class makes it easy to implement multithreading in PHP.
It works on any hosting, the only requirement is curl.
by Andrzej Wielski
`require_once 'lib/Threads.php';`
$Thread->Create(function(){
sleep(5);
echo 'Sleep 5';
});
$Thread->Run();
`$Thread->Run(false);` This code will run, but nothing will shown for user.
`print_r($Thread->Run(false));` This code will run, and we get only responses from threads (return).
$Thread->Create(function($vars) use ($a){
echo $a;
});
This code will print $a
You should change password and salt in file "lib/Threads.php"
`private $password = '785tghjguigu'; private $salt = 'DfEQn8*#^2n!9jErF';`
This is the password for encrypting the functions