Managing multiple PHP versions on Ubuntu

Installing PHP 5.6 I ran into an error trying to restart apache which was caused by conflicting versions of PHP. I had to make sure that I disabled all but one of the versions before restarting apache. Now I can switch between version Resource

Simplifying function signatures

Generally speaking, the fewer number of arguments that a function accepts the better, by which I mean the purpose and intended use of a function should be clear, concise, and predictable. Take for example the following function signature: The possible return patterns of this function are as follows: In the first example usage of the… Continue reading Simplifying function signatures