mraza Posted June 8, 2011 Share Posted June 8, 2011 hi is it possible to run multi instance of a loop? here is my code example $data = array ( array("first" = >"First name"), array("first" = "Second name") ); foreach($data as $process){ echo $process["first"] . "\n"; // some function($process["first"]) } above will output Fist name Second name in above foreach it echo first element of $data array then echo next element, can it process both at same time? like for example if my $data array contains 20 multidimensional array and i wants to process 5 array at same time rather then it will process all one by one. is there any possibility? Thanks for any help. Quote Link to comment https://forums.phpfreaks.com/topic/238814-run-multi-instance-in-a-loop/ Share on other sites More sharing options...
trq Posted June 9, 2011 Share Posted June 9, 2011 PHP doesn't work like this. Some things that do are Node.js or Ruby's Goliath framework. Quote Link to comment https://forums.phpfreaks.com/topic/238814-run-multi-instance-in-a-loop/#findComment-1227259 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.