#! code Logo

Writing Function Code To Be More Readable

1st October 2008 - 3 minutes read time

Last month I started writing functions in a particular way, which has made my life as a programmer much easier on more than one occasion. No matter how many comments or verbose parameter names you put in you can end up writing code that you will get lost in. The reason is simple. Lets say you had a function that took in a couple of parameters.

PHP Logo

Alternate If Statements In PHP

20th January 2008 - 3 minutes read time

If you have programmed in PHP for any amount of time then you will be farmiliar with the if statement. The syntax is as follows: