Development tips, help, and suggestions for building performant websites
PHP get_class_methods (useful dev tool)
So you have an object, and you have no idea what methods you have available to you? No prob… just copy and paste the following line and wham, instant view of all the methods available to your object. I find this extremely useful when working in symfony where some stuff is so abstracted you’re not sure what you are dealing with anymore ($this->object).
foreach (get_class_methods($object) as $method) { echo 'M: ' . $method . '<br>'; } exit;
