tcorbeil Posted March 23, 2007 Share Posted March 23, 2007 Is it possible to assign quotes within a variable? T. Quote 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"; Quote 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!'; Quote Link to comment https://forums.phpfreaks.com/topic/44025-quotes-in-a-variable/#findComment-213767 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.