Posted in

function_exists () in php programming

function_exists () –

function_exists() PHP में एक इनबिल्ट फंक्शन है। function_exists() फ़ंक्शन उपयोगी है यदि हम यह जांचना चाहते हैं कि PHP स्क्रिप्ट में कोई फ़ंक्शन() मौजूद है या नहीं। इसका उपयोग अंतर्निहित कार्यों के साथ-साथ उपयोगकर्ता-परिभाषित कार्यों दोनों की जांच के लिए किया जाता है।

Example 

<?php  

 

 if (function_exists(‘in_array’))   

 {  

  echo “in_array() function is available.

“;  

 }   

 else 

 {  

  echo “in_array() function is not available.

“;  

 }  

   

?>

Output


function is not available

Leave a Reply

Your email address will not be published. Required fields are marked *