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 ''; ??? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
latino.ad7 Posted February 11, 2010 Author Share Posted February 11, 2010 Thanks! Problem solved! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.