Difference Between echo and print in PHP

Echo

This statement is used to output the data to the screen or printing text on
screen.

Ex: –

echo with HTML
echo with Variables

print

This is very similar to echo statement a way of displaying text.

Ex-

Tagged : / / /
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x