View Full Version : what's the difference between echo() and print ?
brothercake
12-16-2002, 09:04 PM
is there any difference, other than syntax?
echo can have multiple arguments:
echo "jadajadajada","blablabla";
you can't do this with print:
print "jadajadajada","blablabla"; //this will produce an error
boywonder
12-17-2002, 12:00 AM
print also returns a value indicating successful execution, 1 or 0. Echo does not.
I pretty much only use echo myself.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.