Possible Duplicate:
Is there a performance benefit single quote vs double quote in php?
Which is faster, single or double quotes and why?
Also, what is the advantage of using either method?
I would say that single quotes are faster because they don't require Shift ;)
The different quotes have implications on variable output and escape characters. Content inside single quotes is taken as is, no escape characters and variables are interpreted. Double quotes interpret variable values and escape special characters like newlines (\n
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With