PHP » GoLang |
login |
register |
about
|
call_user_func(PHP 4, PHP 5, PHP 7) call_user_func — Call the callback given by the first parameter Description
Calls the Parameters
Return ValuesReturns the return value of the callback. Changelog
Examples
Example #2 call_user_func() example
<?php The above example will output: You wanted a mushroom haircut, no problem You wanted a shave haircut, no problem Example #3 call_user_func() using namespace name
<?php The above example will output: Hello world! Hello world! Example #4 Using a class method with call_user_func()
<?php The above example will output: Hello! Hello! Hello! Example #5 Using lambda function with call_user_func()
<?php The above example will output: [test] Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|