Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this support anonymous functions? #14

Open
codecowboy opened this issue Jan 27, 2014 · 2 comments
Open

Does this support anonymous functions? #14

codecowboy opened this issue Jan 27, 2014 · 2 comments

Comments

@codecowboy
Copy link

$parallelcurl->startRequest('http://example.com', function(){
//function content
}, array('something'));
@petewarden
Copy link
Owner

Unfortunately I haven't been working with PHP for a while now, so I haven't added any support for anonymous functions. I'd be happy to roll in a patch if you are able to figure out what's needed!

@exussum12
Copy link

@codecowboy ParallelCurl uses call_user_func which accepts a callable. You can use array($this, "methodName")

http://php.net/manual/en/language.types.callable.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants