Welcome! Log In Create A New Profile

Advanced

Difference between Print and echo

Posted by 77694767mikevdm 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Difference between Print and echo
July 22, 2012 01:13PM
Hi All

Just wanted to know what the main difference is between the print function and "echo"

Thanks
Re: Difference between Print and echo
July 22, 2012 05:39PM
Re: Difference between Print and echo
July 22, 2012 07:12PM
Correct me if I am wrong, this is what I recall learning so far

echo and print are more or less the same, the main difference is print returns either a true or false statement that can aid in troubleshooting/debugging

If I am wrong please let me know, still battling through this smiling smiley
avatar
Mac
Re: Difference between Print and echo
July 23, 2012 10:07AM
The link provided pretty much explains it all - especially point 6 explain the difference.
Just use echo. Everyone else does.
Re: Difference between Print and echo
July 23, 2012 03:01PM
Cool Thanks a lot smiling smiley
Re: Difference between Print and echo
August 22, 2012 05:39AM
Also, echo is much faster than Print.
Re: Difference between Print and echo
August 28, 2012 06:24PM
Thanks for the info, prefer echo myself smiling smiley Although when it comes to speed I doubt we'd notice much of a difference, but in larger scale applications I'm sure it would be very helpful!
Re: Difference between Print and echo
September 16, 2012 12:43PM
echo it's much faster than Print . but they all do the same work after all
Sorry, only registered users may post in this forum.

Click here to login