Ternary operator.
($view == 'folded') <- Indicates a condition. Techincally the brackets are not required
? expression <- What to do if its true
: expression <- What do to if its false
In 5.3 (I think its 5.3 it was introduced) you can actually do a shorthanded ternary for just the else:
($d == 'data') ?: 'no match';
PHP Code:
echo ($view=='folded')? 'folded_form_step':'form_step';
// is the same as
if ($view == 'folded')
{
echo 'folded_form_step';
}
else
{
echo 'form_step';
}