Always use the actual function name when you know it.
call_user_func
is for calling functions whose name you don’t know ahead of time but it is much less efficient since the program has to lookup the function at runtime.
More Related Contents:
- Laravel function name must be a string [closed]
- how to make a function that validates fields in a form? php [closed]
- PHP syntax for dereferencing function result
- PHP Fatal error: Using $this when not in object context
- Deprecated: mysql_connect() [duplicate]
- How can I handle the warning of file_get_contents() function in PHP?
- What is the difference between a language construct and a “built-in” function in PHP?
- Are PHP functions case sensitive?
- How to get JavaScript function data into a PHP variable
- How would I skip optional arguments in a function call?
- Use a variable to define a PHP function
- Shorten long numbers to K/M/B?
- PHP function with variable as default value for a parameter
- Function list of php file
- PHP syntax for dereferencing function result
- Why are PHP function calls *so* expensive?
- Get variables from the outside, inside a function in PHP
- PHP: $_GET and $_POST in functions?
- Jquery ajax setTimeout after form succes not redirecting?
- Undefined variable problem with PHP function
- Javascript and PHP functions
- strcmp equivelant for integers (intcmp) in PHP
- Modify a globally scoped variable inside of an anonymous function
- Cannot redeclare function php [duplicate]
- PHP get all arguments as array?
- Use php namespace inside function
- How can I execute PHP code from the command line?
- When to use a Class vs. Function in PHP
- PHP pass function name as param then call the function?
- How can you use php in a javascript function [duplicate]