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 https://stackoverflow.com/questions/42619312/switch-php-versions-on-commandline-ubuntu-16-04 https://www.liquidweb.com/kb/install-multiple-php-versions-on-ubuntu-16-04/ https://medium.com/@lazycoding/installing-apache-2-php-5-6-mysql-on-ubuntu-14-04-eb3887ceeee1 https://stackoverflow.com/questions/60640440/apache2-service-control-process-exited-code-exited-status-139

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