One thing I often see when re-factoring PHP applications, is the improper use of the method_exists() function, and I think this needs a little bit of clarification.
Continue reading
method_exists() vs. is_callable()
6
One thing I often see when re-factoring PHP applications, is the improper use of the method_exists() function, and I think this needs a little bit of clarification.
Continue reading
Many functions (and methods) in a project will often provide the same return value for the same arguments, like:
function SomeMaths($x)
{
return $x + pow($x, 3.2) - cos($x);
}