Posts Tagged ‘colon syntax’

|

Colon Syntax in PHP

Monday, April 19th, 2010

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.

(more…)

Tags: , ,
Posted in Programming, Tutorial | 6 Comments »