0

What is the difference between echo and print in php ?

Can anyone help me ?

20th Jul 2020, 7:09 AM
Swapnil Nawal
Swapnil Nawal - avatar
2 Answers
0
main difference echo is fast and can take more than one parameter. ex- echo "john" ,"ram" ,"karan" ; //result = as above print is slow and takes only one parameter ex- echo "john" ,"ram" ,"karan" ; //result = error -----
21st Jul 2020, 1:44 PM
Divya Mohan
Divya Mohan - avatar