Im trying to insert an inline if inside a print statement in PHP but I can't find the correct syntax.
What I'm trying to do is something like this:
$a = 1;
$b = 1;
print('pretext ' .($a == $b) ? 'texta' : 'textb'. ' posttext');
But it just prints texta
when it should be printing pretext texta posttext