Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

what is the difference between double quotation marks and single quotat…

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.

Explanation:

Brief Explanations

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.

Answer:

C. Double quotation marks parse variables.