Which statement should I use in php scripts? Echo or Print? What is faster and mostly used? Thanks in advance.
Advertisement
Answer
Supposedly echo
is faster, but either one would work just fine.
Echo also offers a shortcut syntax when embedding php in HTML. i.e.
I have <?=$foo?> foo.
vs
I have <?php echo $foo;?> foo.