SyntaxFix
Write A Post
Hire A Developer
Questions
I think you used the brackets the wrong way. Try this:
$test = (empty($address['street2']) ? 'Yes <br />' : 'No <br />');
I think it should work, you can also use:
echo (empty($address['street2']) ? 'Yes <br />' : 'No <br />');