echo in php

echo without parentheses in PHP program

echo is not a function but a language construct. The echo statement can be used with or without parentheses: echo or echo().

echo does not have return.


echo with parentheses in PHP program

See Output

About echo statement

PHP echo statement can be used to print the string, multi-line strings, escaping characters, variable, etc. Some important points that you must know about the echo statement are:

echo is a statement, which is used to display the output.
echo can be used with or without parentheses: echo(), and echo.
echo does not return any value.

We can pass multiple strings separated by a comma (,) in echo.
echo is faster than the print statement.


About Us

Comsysapp.com is an educational website. Students and software developers can learn programming language tutorials. Comsysapp is very useful for beginners and professional developers. Comsysapp provides tutorial in easy language. Comsysapp.com has focus on simplicity.

Services

Comsysapp.com provides free tutorials like c, html, css, etc. All tutorials are free for beginner and professionals.


Terms of Use

comsysapp.com is not responsible for any mistake. We are not responsible if information made available on our website is incomplete or invalid. But comsysapp.com always try for zero-zero mistake.

Privacy policy

comsysapp.com does not collect any data from users. We use Google AdSense advertising on our website. We never ask personal or private information.


Sitemap

sitemap

copyright © 2023