What is diffrence between echo and print?

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

Leave a Reply

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