View Single Post
Old 07-02-2008, 07:17 PM   #4 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Just to expand on that, when you're passing arguments, you don't need any quotes at all around variables, ie

PHP Code:
mysql_connect($dbn$user$pass); 
...and in the case of strings, variables won't be parsed inside of single quotes anyways, only inside of double quotes;

PHP Code:
$var 'world!';

echo 
'Hello, $var'// will display Hello, $var
echo "Hello, $var"// will display Hello, world! 
-m
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
codefreek (07-02-2008)