Print is a PHP function called with an argument. Echo is a PHP language construct. Echo is therefore faster, but when you need an actual function call you can use print. For example this only wotks using print: $MyVariable ? print “True” : print “False”;
Category: Echo
Echo
Abbreviated way of inserting an echo in HTML “<?=” can be used in place of “<?php echo” Calling a function that can return an optional string within HTML Multiple Lines Note the END marker must appear at the start of the line with no whitespace Echo the contents of an array