+ 1
In php , while using echo we put d text to b displayed in quotation mrks but wen we use variables we dont put quotation mrks. Y?
2 Réponses
+ 2
Actually both are working even if u put double quotes between them.
Have you tried?
+ 1
yes, both are working. you can put a var inside your echo statement:
<?php echo "hi, my name is $myName"; ?>
but when you just echo an variable like:
<?php echo $myName; ?>
there is no need for quotation marks