tcorbeil Posted March 23, 2007 Share Posted March 23, 2007 Is it possible to assign quotes within a variable? T. Link to comment https://forums.phpfreaks.com/topic/44025-quotes-in-a-variable/ Share on other sites More sharing options...
per1os Posted March 23, 2007 Share Posted March 23, 2007 $var = " this is a single ' quote var"; $var = 'This is a double " quote var"; Link to comment https://forums.phpfreaks.com/topic/44025-quotes-in-a-variable/#findComment-213765 Share on other sites More sharing options...
wildteen88 Posted March 23, 2007 Share Posted March 23, 2007 Yes. You it like this: $var = "this has 'quotes' in!"; // OR $var = 'this has \'quotes\' in!'; Link to comment https://forums.phpfreaks.com/topic/44025-quotes-in-a-variable/#findComment-213767 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.