1.2.394. Dynamic Function Call¶
Mark a functioncall made with a variable name. This means the function is only known at execution time, since it depends on the content of the variable.
<?php
// function definition
function foo() {}
// function name is in a variable, as a string.
$var = 'foo';
// dynamic call of a function
$var();
call_user_func($var);
?>
1.2.394.1. Connex PHP features¶
1.2.394.1.1. Specs¶
Short name |
Functions/Dynamiccall |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |