Q Question Everything! New member Jul 6, 2009 #1 Is text between " and " always treated as text? e.g. echo '$name' will echo the value but "$name" wont? What are the differences? (if any)
Is text between " and " always treated as text? e.g. echo '$name' will echo the value but "$name" wont? What are the differences? (if any)
N Nithya New member Jul 6, 2009 #2 Single quotes print the variable, but double quotes print the value of the variable. For Example: $var = "text"; echo '$var'; // prints $var echo "$var"; //prints the value of $var, ie., text.
Single quotes print the variable, but double quotes print the value of the variable. For Example: $var = "text"; echo '$var'; // prints $var echo "$var"; //prints the value of $var, ie., text.