Mega Code Archive

 
Categories / Php / Functions
 

Bool is_callable ( mixed var [, bool check_syntax_only [, string &proper_name]] ) returns true if a function can be called

<?     $func = "sqrt";     if (is_callable($func)) {             print $func(49);     } ?>