12
Feb
2011

Using HTML inside PHP echo function

Posted in: PHP , , No Comments

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";
?>

About the Author

Name: Ravi Shekhar
Hi, I love designing WordPress Themes and Drupal Themes.

Share this post

Twitter Facebook Google Buzz Digg StumbleUpon Delicious Technorati

Leave a Reply