Category Archives: single quote ” and double “”

Difference between single ” and “” Double quotation

Many many programmers are still confused with the single quotation(”) and double quotation(“”) ..

$name = ' ram';
echo $name; //ram
echo 'my name is $name'; // output is: my name is $name
echo "my name is $name"; // Output is :my name is ram

Did you get it very simple single quotation treates every character as pure string. So be carful when you are echoing the string with variable.