View Single Post
Old 06-08-2005, 02:31 PM   #8 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 734
DJMaze is on a distinguished road
'\n' = \n
"\n" = new-line

there's also \t, \r, \0, etc.
The difference between single and double is static vs dynamic strings

For example try:
Code:
$bob = 'hi it\'s me';
echo "$bob";

$bob = "hi it's me";
echo "\$bob";

$bob = "hi it's me";
echo '$bob';
That will hopefully explain it a bit.
DJMaze is offline   Reply With Quote