PHP Output Statement and Function

PHP Output Statement and Function : -

echo is an output statement  but print and printf is an output function.

  • echo and print work without parenthesis
  • printf not work without parenthesis 


echo "<br />echo is an output statement";
print"<br />print is an output function";
printf("<br />printf is an output function");

echo("<br />echo is an output statement");
print("<br />print is an output function");
#printf"<br />printf is an output function";
#printf parenthesis are must ()

//Polymorphism-  single name,different works
//Alias- different name and same work
    //echo and print are alias
//php does not supports polymorphism

Previous Tutorial