+ 1
echo and print
When used echo and when used print in php
4 Antworten
+ 3
For example echo can take multiple arguments, while print can take only one argument. Echo don't have return value, while print has return value of 1. Echo is faster than print.
You can read here about the differences https://www.w3schools.com/php/php_echo_print.asp
+ 4
Use echo just to have some output on the screen, while print will have value in output.
+ 3
You are welcome :)
+ 1
thank you