function_exists()

We can check built in function or user defined functions before using them. The built in function function_exists checks this and returns true of false. It takes one string input and returns Boolean output. Here is an example.

if(function_exists(is_int)){
echo " Yes this funtion is available to use ";
}else{
echo " Sorry , this is not available to use " ;
}

In the above code we have used is_int a built in function in PHP, so we will the output as

Yes this funtion is available to use



plus2net.com




Post your comments , suggestion , error , requirements etc here .




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer