PDA

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?

maes
12-16-2002, 10:45 PM
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.