echo

Outputs one or more strings. A language construct (not a function) that can output multiple comma-separated values.

Syntax

php
echo string1, string2, ...;

Example

php
echo "Hello, World!";
echo "Name: " . $name . "<br>";
echo "Sum: ", 2 + 3, "\n"; // outputs: Sum: 5