
“There's ALWAYS a way to fix something.”
--Steven Wolff
And when you are using PHP, there are multiple ways to fix something. What we need to determine is, that which way is the best. Computation is not like solving a maths problem, where simplicity can be determined by the number of lines. Computation requires resources, for example CPU Cycles and memory. Now when we have got multiple ways to solve a problem, we need to think in terms of computation and how much resources it will take.
The objective is to accomplish the task in minimal number of steps, but different functions in...
Read More