Standalone Search Box Example

PHP echo statement

No ratings


Question: Do you know how to print output using Php?


Answer : The echo statement can be used with or without parentheses: echo or echo().

You can also include html text into echo statement.

<!DOCTYPE html>

echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ", "string ", "was ", "made ", "with multiple parameters.";



Version history
Last update:
August 2021
Updated by:
Labels (1)