0
What is the difference between echo and print in php ?
Can anyone help me ?
2 Answers
+ 3
Welcome to the forum.
Please use the search bar đ option next time to prevent duplicates:
https://www.sololearn.com/discuss/665914/?ref=app
https://www.sololearn.com/discuss/23041/?ref=app
https://www.sololearn.com/discuss/51410/?ref=app
https://www.sololearn.com/discuss/114167/?ref=app
https://www.sololearn.com/discuss/254554/?ref=app
https://www.sololearn.com/discuss/388095/?ref=app
https://www.sololearn.com/discuss/1771169/?ref=app
https://www.sololearn.com/discuss/11578/?ref=app
https://www.sololearn.com/discuss/1095806/?ref=app
https://www.sololearn.com/discuss/386042/?ref=app
Follow the tips to make your question qualify:
https://www.sololearn.com/discuss/1316935/?ref=app
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 -----