Posts Tagged by classes

PHP Tutorial: Two Functions For Exploring A Class

So, I ran into these functions while browsing the PHP documentation for something else, and they were cool-yet-puzzling. They are method_exists() and get_class_methods(). On the one hand, they seem really useful to make sure you're calling a method that's there in a class/object, or to list out the methods in the class for inspection. But…