PHP Echo

By: Prem Tiwari | Last Updated: | In: PHP Tutorials

ECHO is not a function, it is a language construct in PHP programming so that you can use it without parenthesis. ECHO is used to print the string, multip line string. See the below examples:


Below is the example to print the single line string using ECHO.

Here is another example to print the multiline string.

Output of above example:

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book

Below is another example to printing a variable with string using ECHO.


Hello FreeWebMentor, How are you?