Functions 1-8 Why did we use print?


I was wondering why we used print instead of echo in this exercise, because up until this point I thought that was the print command used in PHP. Could someone please explain what the difference is, or clarify whether there even is a difference between print and echo? Thanks.


There is absolutely no diffrence between print and echo. Although it is rumered that echo is more fast by milliseconds there is no diffrence. But there are commands like printf() var_dump() that help you on debugging your variable. Learn more here.


Thank you for distinguishing that difference @amanuel2.