In PHP you can output multiple arguments at once with the echo statement like this:
echo "Mangoes", " ", "are", " ", "tasty.";
When you try to do the same with the echo function like this:
echo("Mangoes", " ", "are", " ", "tasty.");
You will get a error, why is this so?
Could this be because PHP wants you to use string concatenation instead of multiple arguments?
Thank you in advance.
Aucun commentaire:
Enregistrer un commentaire