Difference between single-quoted and double-quoted strings in PHP Echo
In this Post i will Show you what is the difference between Single quote and double echo.
Both Code below will Echo the Same Result.
<?php $name="Brian88"; // Echoing using double Quote echo " "; // Echoing using single Quote echo' My Name Is '.$name; // Echoing using Double Quote echo" My Name Is ".$name; ?>
The Difference
- If you are using a Double Quote,when you come across “” inside the tag Element ,you will need to add a forward slash before the double quote and forward slash before the double quote ends eg: \”color:blue\”