I'm new to PHP and I was wondering which is the ideal method to turn the text in the else statement below into code. I think my old way to escape every quote with a \" seems not to be the best way so how would you do it?
<?php
if (strlen($finalArray['Lat']) <= 0){
}
else
{
<a name="openframe"></a>
Loc: <br/>
<a href="#xmap" onclick="spoiliut('pmap');" title="<?php echo $finalArray['Name']; ?>" target="_self"><strong> <?php echo $finalArray['Name']; ?> </strong>
</a>
?>
Thanks for tips.