PHP Echo

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?

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , ,