PHP treats single quotes and double quotes differently
When working with strings, it is important to understand the difference in how PHP treats single quotes (echo ‘Hello $name’; ) as compared with double quotes (echo “Hello $name”; ) Single quoted strings will display things exactly “as is.” Variables will not be substituted for their values. The first example above (echo ‘Hello $name’; ) […]