How To Check If API Is Loaded?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jack_indigo
Forum Contributor
Posts: 186
Joined: Sun Jun 08, 2008 11:25 pm

How To Check If API Is Loaded?

Post 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.
User avatar
Verminox
Forum Contributor
Posts: 101
Joined: Sun May 07, 2006 5:19 am

Re: How To Check If API Is Loaded?

Post by Verminox »

jack_indigo
Forum Contributor
Posts: 186
Joined: Sun Jun 08, 2008 11:25 pm

Re: How To Check If API Is Loaded?

Post by jack_indigo »

Lifesaver. Thanks!
Post Reply