latino.ad7 Posted February 11, 2010 Share Posted February 11, 2010 How do I put ' sign of HTML code inside PHP code? example: in whatever.php I can put: <?php echo '<table><tr><td>whatever</td></tr></table>'; ?> and HTML will work from "inside" of PHP. Now I need to get ' sign. Here is HTML code: <A HREF="aaa.jpg" onMouseOver = "rollover('dl3')" onMouseOut = "rollout('dl3')"><IMG SRC="bbb.jpg" NAME="dl3" ALT="Home Page" BORDER=0></A> So notice there are ' signs here. How do I include the above HTML code inside echo ''; ??? Link to comment https://forums.phpfreaks.com/topic/191818-php-placing-html-sign-inside-php/ Share on other sites More sharing options...
Mchl Posted February 11, 2010 Share Posted February 11, 2010 http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single Link to comment https://forums.phpfreaks.com/topic/191818-php-placing-html-sign-inside-php/#findComment-1011008 Share on other sites More sharing options...
latino.ad7 Posted February 11, 2010 Author Share Posted February 11, 2010 Thanks! Problem solved! Link to comment https://forums.phpfreaks.com/topic/191818-php-placing-html-sign-inside-php/#findComment-1011016 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.