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
|