I am trying to insert the below PHP into an echo but having trouble with the correct formatting.
PHP:
<?php if ( isset($heroloc) ) { echo '@ '.$heroloc;} ?>
Would like to place the if statement into the below right after $created_time
echo '<span class="time">'.$created_time.'</span>';
Somethign like this, but formatted properly:
echo '<span class="time">'.$created_time. if ( isset($heroloc) ) { echo '@ '.$heroloc;'</span>';