Double quotes can be used so you can include a variable in your string:
Code:
$somevar = 'John';
echo "Hello $somevar, have a good day!";
Single quotes offer no such support.
Code:
$somevar = 'John';
echo 'Hello $somevar, have a good day!';
Would throw up an error.
When dealing with a straight string, no variables or anything, it's best to use single quotes because double quotes tells PHP to look for variables and parse them correctly. It saves PHP a little bit of time.
Cheers
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --