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?

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: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs