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.
How To Check If API Is Loaded?
Moderator: General Moderators
-
jack_indigo
- Forum Contributor
- Posts: 186
- Joined: Sun Jun 08, 2008 11:25 pm
-
jack_indigo
- Forum Contributor
- Posts: 186
- Joined: Sun Jun 08, 2008 11:25 pm
Re: How To Check If API Is Loaded?
Lifesaver. Thanks!