There’s curl-multi[0] you can use for that purpose. Not as nice as promises/async/await, but it gets the job done for your example.
[0] https://secure.php.net/manual/en/function.curl-multi-exec.ph...
There’s curl-multi[0] you can use for that purpose. Not as nice as promises/async/await, but it gets the job done for your example.
[0] https://secure.php.net/manual/en/function.curl-multi-exec.ph...