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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -