What's the difference between " and ' when creating strings in PHP? -
is very basic, but would like to know the difference / security related information about using "vs".
Does anyone provide an example that tells when every one should be used?
Very subtle differences, you want to read a lot of details, but important details are Are:
Double quotes are parsed while single quotes are literal.
You can use inline inline with double quotation marks, but not with single quotes.
Though there are some catches:
Single quote slightly faster.
Comments
Post a Comment