javascript - Async requests in PHP -


I need to generate a request for several APIs, get answers from them, and then create a report.

Something like this:

  foreach ($ api_array $ api) {echo $ api; $ Responce = file_get_contents ($ api); If echo ($ responce) echo 'lt; Br / & gt; '; Else Echo 'failed & lt; Br / & gt; '; }   

It is clear that when going continuously with each other, it will take a lot of time to answer each service.

Is it asynchronous, like in javascript? Thanks a lot!

You can use it for

Comments