Quantcast
Channel: 9zap.com » PHP
Viewing all articles
Browse latest Browse all 15

Using HTML inside PHP echo function

$
0
0

You can use HTML tags inside PHP echo function. Look below examples of echo function with html tags.
Using HTML heading tag.

<?php
echo "<h2>Hello world!! I an learning php</h2>";
?>

Using HTML break line tag.

<?php
echo "Hello, how are you <br />";
echo "Hi, I am good, how are you";
?>

Viewing all articles
Browse latest Browse all 15

Trending Articles