+ 1

What is the difference between PRINT and ECHO in php

Php

4th Jul 2019, 9:31 AM
Alok Yadav
Alok Yadav - avatar
2 Answers
+ 5
print has a return value of 1 whereas echo has no return value and is slightly faster.
4th Jul 2019, 9:37 AM
Sonic
Sonic - avatar
+ 1
Thanks
4th Jul 2019, 9:38 AM
Alok Yadav
Alok Yadav - avatar