Originally Posted by Cole
So what, he forgot to escape the quotation marks.
PHP Code:
<?= $==10 ? 'it\'s 10' : 'it\'s not 10'; ?>
And I generally use the ternary operator when the If statement is not complex.
|
That still won't work. "$==10" < What's that?