0

I want to run 5 functions in parallel and all these functions will return result from SQL.

I planned to use pcntl_fork(); but didn't knew how to assign values to those variables.

3
  • 2
    Please share the code you've tried so far, along with a specific question Commented Jan 21, 2015 at 11:33
  • I was getting data from query, and single query take 10 second and queries are running one after the other, i want a process where all these queries run parallely and return me the result and assign to respective keys.$result = array(); foreach( $array as $key => $value ) { $result[$value] = $this->getDetailData( $value ); } Commented Jan 21, 2015 at 11:36
  • I have gone through that doc as well, but how i assign the values assigned to it... Commented Jan 21, 2015 at 11:46

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.