Most IMP question in PHP Interview.
Most IMP question in PHP Interview.
What’s the Difference Between Single & Double Quotes in PHP.
String enclosed in single quotes print as it is without being interpreted. It is faster and everything quoted inside treated as plain string.
In Double quote strings will be printed after interpretation. So it is better to use single quotes unless you need to interpret the variable value.
The advantage of using double quotes is you don’t need to use concatenation(.)
What’s the Difference Between Single & Double Quotes in PHP.
String enclosed in single quotes print as it is without being interpreted. It is faster and everything quoted inside treated as plain string.
In Double quote strings will be printed after interpretation. So it is better to use single quotes unless you need to interpret the variable value.
The advantage of using double quotes is you don’t need to use concatenation(.)