This sentence uses single quotes to concatenate a variable:
The numbers 2 and 3 added together equal 5.
This sentence uses double quotes to print a variable:
The numbers 2 and 3 added together equal 5.
Single quotes prints the sentence as is:
The total is $a.
Double quotes will print out the variable's value as well:
The total is 5.