My ternary is returning an error. Am I forgetting some basic rule or quirk about using PHP ternaries with echos?
isset($tag) ?
echo '<a href="#">' . $tag['firstname'] . '</a>' : null;
The above ternary returns the following error:
Parse error: syntax error, unexpected T_ECHO in /classes/Photo.php on line 216