Print vs Echo


echo() is a language construct, so you are not required to use parentheses with it. If you ever need to pass more than one parameter to echo(), the parameters must not be enclosed within parentheses.

print() behaves as a Function, but is not actually a function. print is sometimes mistaken as a function by many programmers since it sets a return value, but it is also a language construct like echo. It simply outputs a string of data. And you are not required to use parentheses with it.


Comments

Popular posts from this blog

Talambuhay ni Liwayway A. Arceo

Basketball Hand Signals

Uhaw ang Tigang na Lupa- Liwayway A. Arceo