I originally thought that there was no difference between double quotation marks and single quotation marks. They both directly output strings. However, when typing the code these days, I suddenly discovered that , when single quotes and double quotes are mixed, sometimes the variables cannot be parsed.
I analyzed it carefully and found that single quotes are only the output of strings, while double quotes can parse variables
Related recommendations:
The difference between && and & operations in php
The above is the detailed content of The difference between PHP double quotes and single quotes. For more information, please follow other related articles on the PHP Chinese website!