bool function_exists ( string function_name ) returns true if that function is available for use. : function_exists « Functions « PHP






bool function_exists ( string function_name ) returns true if that function is available for use.

 
<?
    if (function_exists("imagepng")) {
            echo "You have the GD extension loaded.";
    } else {
            echo "Can't find imagepng( ) - do you have GD loaded?";
    }
?>
  
  








Related examples in the same category

1.Testing for a Function's Existence