PHP echo() Function

The echo() function outputs one or more strings. Note:

The echo() function is not actually a function, so you are not required to use parentheses with it. However, if you want to pass more than one parameter to echo(), using parentheses will generate a parse error.

Example

<?php
echo "Hello world!";
?>

Output

Hello world! 

Leave a Reply

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