Possible Duplicate:
Writing a function in php
I'm using the following code
echo 'Curl: ', function_exists('curl_version') ? 'Enabled' : 'Disabled';
this can get it enabled or disabled
but I would like to make as function say function name is _iscurl
then I can call it as following any where in my website code
if (_iscurl()){
echo "this is enabled"; // will do an action
}else{
echo "this is disabled"; // will do another action
}
almost same as my previous question check if allow_url_fopen is enabled or not