print_r("otherText = $otherText<P>"); // PRINTS "blah blah blah<P>"
$html .= ($otherText) ? htmlspecialchars($otherText) : ($result[$i]->display) ? 'zz' . str_replace('\\', '', $result[$i]->display) : 'qq' . $result[$i]->label;
This variation of the ternary operator should produce the first result since $otherText exists, however, it constantly produces 'zz' . NULL, even though $result[$i]->display does not exist.
Could someone tell me what on earth I did wrong with my ternary operator syntax for this to occur?
Thanx
Phil