QUESTION IMAGE
Question
what is the difference between double quotation marks and single quotation marks in php? a there is no difference between single quotation marks and double quotation marks. b single quotation marks are not allowed. c double quotation marks parse variables. d single quotation marks parse variables.
In PHP, double - quotation marks parse variables. For example, if you have a variable $name = "John";` and you use `"Hello, $name", it will output "Hello, John". Single - quotation marks do not parse variables in this way. Option A is incorrect as there is a difference. Option B is wrong because single - quotation marks are allowed. Option D is incorrect since single - quotation marks do not parse variables.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. Double quotation marks parse variables.