Re: Stupid question, sorry...
| From: | Mathieu Dumoulin | Date: | Thu, 06 Feb 2003 15:32:55 +0000 |
| Subject: | Re: Stupid question, sorry... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134628@lists.php.net to get a copy of this message | ||
All single quotes around variables or escape characters are written out man!
it's as simple as that.
example you have a variable named $hey and you want to output "$hey", you
can't it's gonna replace the content of that string with the value of $hey.
When you put stuff inside ' ' they are not escaped by the system
Mathiue Dumoulin
"Chris Boget" <chris@wild.net> a écrit dans le message de news:
021901c2cdf4$4a806d00$8c01a8c0@ENTROPY...
> Why is it that \n gets translated to a _new line_ when in
> double quotes whereas it's displayed as the literal when
> in single quotes? I checked out the docs but couldn't
> come up with a definitive answer. If someone could point
> me to the right page in the docs that explains this, I'd be
> ever so appreciative!
>
> thnx,
> Chris
>