- The title of this article should be echo(), but due to technical restrictions, cannot contain parenthesis.
Output one or more strings
echo() is not actually a function, but rather a language construct so the parenthesis are not actually required, even when passing more than one argument to it for output.
Arguments[]
void echo ({{{params}}}) |
Argument Inclusion[]
(PHP 3, PHP 4, PHP 5)
Examples[]
Example 1:[]
<?php $foo = "is"; $bar = "output"; echo "This $foo sample $bar!"; ?>
Output[]
This is sample output!
Example 2:[]
<?php echo "In this sample Newlines will be displayed as well."; ?>
Output[]
In this sameple Newlines will be displayed as well.
- For more details on this function, visit its entry in the php manual.