Correct. You can use full ("$variable" quotes if you want, but that is only useful if you have other text along with your variable. But PHP uses the single quotes to treat everything inside as plain text, inlcuding variable names.
Also, do not confuse single quotes with the backtick (``), which does command-line execution of everything inside it. ($myvar = 'ls -la'; would make your variable string equal to the list of files in the current Unix directory). -------------------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.