Php Echo

PHP echo is a language construct not a function, so you don't need to use parenthesis with it. But if you want to use more than one parameters, it is required to use parenthesis.

printing string

Example :-

Result

Hello by PHP echo

printing multi line string

Example :-

Result

Hello by PHP echo this is multi line text printed by PHP echo statement

printing escaping characters

Example :-

Result

Hello escape "sequence" characters

printing variable value

Example

Result

Message is: Hello Dwtutorials PHP