php - Alternative Way to write string with Quotations -
how make work in php:
$string = "<div id="widget14" class="widget widget-124"> <a href="http://website.com/page.php?id={$pageurl}"><p><span class="hotspot" onmouseover="tooltip.show('<strong>about us</strong><br/>learn us!');" onmouseout="tooltip.hide();"><img class="images_button" alt="about image" src="{$image_url}" width="172px"/><br/>about us</span></p></a> </div>";
$string = "<div id=\"widget14\" class=\"widget widget-124\"> <a href=\"http://website.com/cgames/\"><p><span class=\"hotspot\" onmouseover=\"tooltip.show('<strong>about us</strong><br/>learn us!');\" onmouseout=\"tooltip.hide();\"><img class=\"images_button\" alt=\"about image\" src=\"http://www.website.com/images/logo.png\" width=\"172px\"/><br/>about us</span></p></a> </div>\"; above should work prerfectly fine.
Comments
Post a Comment