This is being printed using double quotes, also my name is Neng

"This is being printed using single quotes, also my name is ". $name

Essientially, double quotes can read the variables that you assigned it. The example shown above tells us that double quotes can read the variable $name, while single quotes only reads the variable as it is without its assigned value. With that said, each has its own uses, like double quotes can translate variables into their respected values, while single quote will read it as raw.

Go Back