Difference between single and double quotes in PHP

et’s see the codes first.

01. With single quotes:

02. With double quotes:

In the first section we had to use a concatenate ” . ” to add the string with variable but on the second section we did not need to writhe the string and variable separately.

So, now it’s up to you what you like to use single or double quotes.