Definition
The echo() function outputs one or more strings.
Syntax
echo(strings)
Parameters
Parameter | Description |
---|---|
strings |
Required. One or more strings to be sent to the output. |
Example
<?php
echo("Hello world!");
echo "<br>";
$str = "Hello world!";
echo($str);