print html code in php code example
Example 1: How to show php text
<?php
echo "Hello World!";
// You can also do this with a variable:
$YourVariable = "Hello World!";
echo $YourVariable;
?>
Example 2: print in php
print_r("");
Example 3: print html code in php
<?php
echo "<h2>HTML with PHP!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
?>