Back

When using double quotes anything placed inside the string is evaluated and put into the output. Below is an example with the name of "Little Red Riding Hood" in double quotes. When using single quotes, the variables are taken literally and need to be surrounded as such (. $name .) in order to be evaluated as a variable.


animated red riding hood
My name is Little Red Riding Hood! However, my grandmother doesn't call me Little Red Riding Hood, she calls me Red.