For printing out strings, there are echo, print and printf. Explain the differences.
The basic differences in echo, print, printf is:
echo : echo is a language construct(don't use paranthesis for echo).echo does not return any value.
print : print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string.
printf : It is a function, not a construct, and allows such advantages as formatted output, but it?s the slowest way to print out data out of echo, print and printf.