+ 1
What is the difference between print, echo and return in php ?
2 ответов
+ 5
PHP echo and print Statements. ... 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. echo is marginally faster than print .
https://www.w3schools.com/php/php_echo_print.asp
+ 2
@Rhythm Khandelwal: as stated by Scooby in above comment, its true The differences are small, but echo is widely used,