The PHP echo statement is commonly used to display data on the screen.
The following example demonstrates how to output text and a variable:
$txt |
The following example will generate the same output as the previous one:
$txt |
The following example will display the sum of two variables:
$x
|