07-02-2008, 07:17 PM
|
#4 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
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
|
|
|
|