+ 1

echo and print

When used echo and when used print in php

12th Sep 2018, 5:21 PM
Hassan Farog
Hassan Farog - avatar
4 Respuestas
+ 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
12th Sep 2018, 5:44 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 4
Use echo just to have some output on the screen, while print will have value in output.
12th Sep 2018, 5:44 PM
Nilavarasan
Nilavarasan  - avatar
+ 3
You are welcome :)
12th Sep 2018, 6:53 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
thank you
12th Sep 2018, 6:51 PM
Hassan Farog
Hassan Farog - avatar