Posted by : Chris London in (Programming, Tutorial)

Colon Syntax in PHP

Tagged Under : , ,

Colon syntax is another way to style your PHP code. Instead of using curly braces you use colons. Below I have included an example of a couple different curly brace styles and also each statement using the colon syntax. I don’t know of any performance benefits or loss to using this syntax over any other. Please comment here if you have any more information about its affects on performance.

Read the rest of this entry »