Page 1 of 1

How To Check If API Is Loaded?

Posted: Mon Jun 23, 2008 11:53 am
by jack_indigo
I have required the usage of the new "filter" API for my project. (For those not in the know, go Google on "filter php.net".)

How can I have my PHP page check to see if any given API exists or generates a graceful error message? I don't think class_exists or method_exists works in this case because filter loads into the global namespace.

Re: How To Check If API Is Loaded?

Posted: Mon Jun 23, 2008 12:53 pm
by Verminox

Re: How To Check If API Is Loaded?

Posted: Mon Jun 23, 2008 2:13 pm
by jack_indigo
Lifesaver. Thanks!