JayLewis Posted April 8, 2007 Share Posted April 8, 2007 being a beginner im not sure how you use " in an echo... echo "<td class="tdback">"; how do you do it? I read up on it and forgot it, and cant find it again. echo "<td class=/"/tdback/"/>"; it was somethin like that.. im sure. Link to comment https://forums.phpfreaks.com/topic/46150-solved-using-in-php/ Share on other sites More sharing options...
PC Nerd Posted April 8, 2007 Share Posted April 8, 2007 use the other slash .... \ not / Link to comment https://forums.phpfreaks.com/topic/46150-solved-using-in-php/#findComment-224306 Share on other sites More sharing options...
JayLewis Posted April 8, 2007 Author Share Posted April 8, 2007 echo "<td class=\"\tdback\"\>"; like that? Link to comment https://forums.phpfreaks.com/topic/46150-solved-using-in-php/#findComment-224308 Share on other sites More sharing options...
PC Nerd Posted April 8, 2007 Share Posted April 8, 2007 exactly, but you dont need the second slash echo "<td class=\"tdback\">"; that should work.. ithink if is as "the slash the underlines the character trying to escape" lol Link to comment https://forums.phpfreaks.com/topic/46150-solved-using-in-php/#findComment-224310 Share on other sites More sharing options...
JayLewis Posted April 8, 2007 Author Share Posted April 8, 2007 haha, nice one mate! Link to comment https://forums.phpfreaks.com/topic/46150-solved-using-in-php/#findComment-224311 Share on other sites More sharing options...
wildteen88 Posted April 8, 2007 Share Posted April 8, 2007 Keep note that this technique also applies to single quotes (') too if you define your string with a single quotes example: echo 'this is a \'string\''; Link to comment https://forums.phpfreaks.com/topic/46150-solved-using-in-php/#findComment-224329 Share on other sites More sharing options...
JayLewis Posted April 8, 2007 Author Share Posted April 8, 2007 ah, thanks man! Link to comment https://forums.phpfreaks.com/topic/46150-solved-using-in-php/#findComment-224547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.