October 2005
Intermediate to advanced
372 pages
11h 35m
English
is_callable()
bool is_callable ( mixedvar[, boolcheck_syntax_only[, string&proper_ name]] )
The is_callable() function takes a string as its only parameter and returns true if that string contains a function name that can be called using a variable function. For example:
$func = "sqrt";
if (is_callable($func)) {
print $func(49);
}