In all actions, Echo and Print differ depending on how they are structured. Printing returns a value similar to a normal function. But, despite the widespread belief, Print is not a function, since we can see that it does not require brackets to work (Do not confuse with Printf). Print and Echo are actually called language constructs, although this does not mean that we cannot force Print to act as a function.
Here you can find an additional link:
http://www.learnphponline.com/php-basics/php-echo-vs-print
Not quite complete. Printing can be used as part of complex designs such as
($b) ? print "True" : print "False";
whereas Echo cannot. Also, if you want to use the error output (@print "Test";), you cannot use the echo. Otherwise, good information.
Pheonix
source share