Your Ad Here

Saturday, November 7, 2009

echo, print and printf. Explain the differences?

echo just outputs the contents following the construct to the screen.
print() is a function that will return either 0 or 1 based on failure or success. print does not take multiple parameters.
printf is similar but is used for printing formatted output.

No comments:

Post a Comment

Your Ad Here