.


Divya

echo() Function in PHP


In PHP the echo() function is usd to outputs one or more strings.

Syntax

echo(strings)

Example

<!DOCTYPE html>
<html>
<body>
<?php
echo "Hello world!";
?>
</body>
</html>
Output

Hello world!

Example 2

<!DOCTYPE html>
<html>
<body>
<?php
$string="Hello world!";
echo $string;
?>
</body>
</html>
Output

Hello world!



.