Home | Store | osCommerce Tutorials

PHP Echo Command

The most fundamental, and probably most often used PHP command is echo. The PHP echo command simply outpt text to the web browser.

A simple echo command inside a PHP block of codes should looks like:


echo "Hello World";


A typical example of PHP echo command placed in HTML document should look like:

<title>PHP Tutorial</title>

<h1>PHP Echo Command Example</h1>


//PHP commands here
echo "Hello World";



The output of the above typical PHP example should look like:

PHP Echo Command Example

Hello World