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






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);
    }
?>
  
  








Related examples in the same category