Difference between echo and print in PHP with examples

The basic difference between echo and print can be seen using this table.

Using few examples, I will illustrate the difference between echo and print functions in PHP.

Also follow this question in Stack Overflow for better understanding

Leave a Reply

Your email address will not be published. Required fields are marked *