I use pretty much the same format for writing PHP, with a few exceptions... for one, I don't use a space after between if and the condition: Also, I think leaving a blank line every second line is pointless, doesn't like nice, and makes modifying it extremely difficult. Also, for short conditionals I write it like this
(with tabs instead of spaces, as well)
$var = ($condition) ?
And finally, I use as few curly braces as possible. If there are only 1 or 2 functions to be carried out after a statement, I'll combine them (if 2) and omit the curly braces.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)