Breaking

Monday, July 9, 2018

The Different Between Echo And Print In PHP - Social Newsia



The Main Different Between Echo and Print is that..
Echo is just a statement not a Function. It doesn't return any value or just print a value, Wheres the Print is Function, It return value or just print a value,

We can not pass arguments in echo since it is a statement, Wheres The Print is function, So we can pass Argument in Print, And it will return value, True or False.

Marginally the Echo is faster than print since there is no set of returns value.

No comments:

Post a Comment