Author Topic: Check existence of a PHP Function in PHP  (Read 9305 times)


  • Administrator
  • VIP Member
  • *****
  • Posts: 1826
  • I want to show my performance at any where
    • View Profile
    • Higher Education
Check existence of a PHP Function in PHP
« on: January 22, 2012, 07:47:34 AM »
Sometimes when you make many functions in your PHP scripts. Then you need to check the real existence of the function you need. Thatís why to check a functionís existence, you can write a little piece of code like the following:




echo "Function Exist";




echo "Function doesn't exist";



NameOfTheFunction means your function's name. If your function is LoginCheck(). Then you need to write only LoginCheck. Just omitt the () symbol.

If it is helpful for you please make comments and share it.
Acquire the knowledge and share the knowledge so that knowing,learning then sharing - all are the collection