et’s see the codes first.
01. With single quotes:
<?php $address = "Dhaka, Bangladesh"; echo '<h4> Shamim lives in ' . $address . '<h4>'; ?>
02. With double quotes:
<?php $address = "Dhaka, Bangladesh"; echo "<h4> Shamim lives in $address <h4>"; ?>
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.