PHP Tutorial – Single, Double Quotes and Concatenation (PHP For Beginners)


Video is ready, Click Here to View ×

In this tutorial you will learn the use of single and double quotes in echo statement also how to concatenate a string in php.

1. Double quote strings will display a host of escaped characters, and variables in the strings will be evaluated.


$name = “”;

echo “I love $name<br>”;


2. to display a back slash, you can escape it with another backslash \ .


echo “C:\wamp\www\test”;


List Of escape sequences for special characters :

$ dollar…

Leave a Reply

Your email address will not be published. Required fields are marked *