Check if a PHP class has a certain function

1 · Josh Sherman · July 22, 2013, midnight
We’ve previously discussed how to check if a function exists but that only works on standalone functions like the ones built into PHP as well as any user defined functions. Luckily there’s a function for that called method_exists(). When speaking in the scope of a class, the functions are referred......