public static function functionAvailable($func)
    {
        $disabled = explode(',', ini_get('disable_functions'));

        return function_exists($func) && !in_array($func, $disabled);
    }
public static function functionAvailable($func)
    {
        $disabled = explode(',', ini_get('disable_functions'));

        return function_exists($func) && !in_array($func, $disabled);
    }
public static function functionAvailable ( $ func ) { $ disabled = explode ( ',' , ini_get ( 'disable_functions' ) ) ; return function_exists ( $ func ) && ! in_array ( $ func , $ disabled ) ; }
Checks whether the given function name is available.

@param string $func the function name

@return bool
Checks whether the given function name is available .