ParallelCurl
ParallelCurl copied to clipboard
Passing a class function name
If calling this within a class method, How would I reference another class method instead of naming a function using a string?
$parallelcurl->startRequest('http://example.com', <how to call a class method>, array('something'));
Right now you need a regular function that calls the class method, using a class object stored in the cookie data.
you can use the
function () use syntax
http://stackoverflow.com/questions/1065188/in-php-5-3-0-what-is-the-function-use-identifier