Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference between echo and print object in php?

user-image
Question added by Reham Alfaqeer , PHP Web Developer , Syarah.com
Date Posted: 2016/09/19
Hasam Ikhlaq Satti Muhammad Ikhlaq Satti
by Hasam Ikhlaq Satti Muhammad Ikhlaq Satti , Web Developer , Creative Garage

echo and print are more or less the same. They are both used to output data to the screen. The differences are small: echo has no return value while print has a return value of 1 so it can be used in expressions. echo can take multiple parameters (although such usage is rare) while print can take one argument.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.