+ 2
Please Who can help me with the different bw print and echo in php?
I don't know which one is more efficient between the two. Please I really need help..
3 Réponses
+ 14
echo :
1. echo is a statement i.e used to display the output. it can be used with
2. parentheses echo or without parentheses echo.
3. echo can pass multiple string separated as ( , )
4. echo doesn’t return any value
5. echo is faster then print
Print
1. Print is also a statement i.e used to display the output. it can be used with
2. parentheses print( ) or without parentheses print.
3. using print can't pass multiple argument
4. print always return 1
5. it is slower than echo
- phptpoint
+ 7
You are wellcome
+ 2
Thanks agus