What is diffrence between echo and print?

Posted by om 10 January, 2009

Print method can return a true/false value. This may be helpful during a script execution of somesort. If you need to output data through a function, you can use print()
instead

Echo does not return a value, but has been considered as a faster executed command. echo is not a function and, as such, it does not have a return value.
echo 30;
print (30);

  • Share/Bookmark
Categories : Interview Questions Tags :

Comments

No comments yet.


Leave a comment

(required)

(required)