View Single Post

  #7 (permalink)  
Old 12-02-2007
MangroveRoot
 
Posts: n/a
Default Re: single quote in string constant

MangroveRoot wrote:
> At the very top of my .php file, I define a variable as follows:
> ======
> $title = "Doesn't Matter";
> ------
> (. . .)
> Is there some way I can "escape" or "quote" the singlequote in the variable
> so that it will just be taken as a value (I guess)
> rather than as something to be concatenated with what's around it
> and thus interacting with the quotes around it?
> (. . .)


BTW, which of these groups --
alt.comp.lang.php, alt.php, comp.lang.php --
is the correct one for questions of this sort?
Reply With Quote