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

Published by

Mohit Kumar

A simple person who likes to share his thoughts on this blog. Know more about me

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.