Basically I am woking on this project where I have been given an api.
the maximum number of times i can access is 20 calls per second
I need to call this api say 500 times
I can do simple loop which is
foreach($test as $call){
//call api using $call variable value
}
How do I makesure that I am only execuiting it no more than 20 times per second?