Well basically you would use double quotes whenever you want the data/text
in between the quotes to be parsed, so for instance:
$name = 'Rick';
echo "My name is $name"; // output = My name is Rick
echo 'My name is $name'; // output = My name is $name
echo "My name is \"$name\""; // output
Hi,
I was looking through some PHP books and scripts on the web and I have
noticed different syntax for inputting and outputting data.
For example the book PHP essentials used a format of slash and quotations:
$sql = "INSERT INTO USER_TRACK VALUES (\"$user_id\", "$sel
echo "$user_id";
Anothe
2 matches
Mail list logo