Quiz Question 1 of 6
How does a variable differ when used within single quoted strings verses double quoted strings?
Choose the correct answer below:
-
A
By using single quotes, the PHP interpreter expands the variable showing us the VALUE of the name variable instead of the variable name itself. Double quoted strings will show the actual variable.
-
B
By using double quotes, the PHP interpreter expands the variable showing us the VALUE of the name variable instead of the variable name itself. Single quoted strings will show the actual variable.
-
C
There is no difference.
-
D
When using double quotes around numeric characters, PHP will assign the variable type of string. When using single quotes around numeric characters, PHP will assign the variable type of integer.