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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -