($var) ? $var = $var2 : $var = FALSE;
Quote:(Condition) ? (Do this if it evaluates to TRUE) : (Do this if it evaluates to FALSE) ;
if ($var === TRUE) { $xyz = 'foo'; }else { $xyz = 'bar'; }
$xyz = ($var === TRUE) ? 'foo' : 'bar' ;