+ 1

Echo"hello"; and echo($sum); here in this two codes their is a point that echo must have single quotes r double quotes

but in echo($sum); their is no single r double quotes why

21st Jun 2017, 5:13 AM
R Prathibha
R Prathibha - avatar
1 Answer
+ 1
php, echo compiles the variables in double quotes but does not so for variables in single codes. try changing the echo from below code to double quotes or vice versa, you would notice the difference. https://code.sololearn.com/w3IXipJlUULM/?ref=app
25th Jun 2017, 8:10 AM
Oxide Debbarma
Oxide Debbarma - avatar