26th Feb 2019, 9:07 AM
Juliana Anaso
Juliana Anaso - avatar
4 Réponses
+ 10
<?php define("MSG", "'Hi SoloLearners!'", true); echo MSG; $name = "peter"; $age = 234; echo $age; ?>
26th Feb 2019, 9:12 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
Don't put space after dollar signs!
26th Feb 2019, 9:12 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
Error 1 : $ name = "peter"; $ age = 234; check the above declaration . Do not let space between $ and name Error 2 : echo "age"; If you don;t want to print string age and you want the value of variable age replace it with echo $age;
26th Feb 2019, 9:15 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar
26th Feb 2019, 9:40 AM
Juliana Anaso
Juliana Anaso - avatar