Because PHP performs evaluation on the contents of double quotes and
does not evaluate the contents of single quotes.  This is covered in the
PHP manual in the Variables section at
http://www.php.net/manual/en/language.variables.php.

Jason

On Thu, 2003-02-06 at 08:27, Chris Boget wrote:
> 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
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to