View Single Post
02-18-2007, 11:58 PM
#11
Ali is offline Ali
Status: Junior Member
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 45
iTrader: 0 / 0%
 

Ali is on a distinguished road

  Old

derek lapp - you are right ternary operator is better to use for single statments, and here is how to use it..

$myVar = condition ? if_condition_true : if_condition_false

thats much better approach, but more times I see people using brackets, and code looks childish..

cheers