PHP echo Keyword

❮ PHP Keywords

Example

Use echo to output some text:

<?php
echo "Hello World!";
?>
Try it Yourself »

Definition and Usage

The echo keyword is used to output text. The echo statement can output multiple strings separated by commas.


More Examples

Example

Use echo to output multiple strings:

<?php
echo "Hello ", "World", "!";
?>
Try it Yourself »

Related Pages

The print keyword


❮ PHP Keywords
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.