Php in Html

Php in Html

How to Use Php in Html?

Explanation

PHP is the abbreviation for Hypertext Pre Processor, which is a server-side scripting language. PHP is used for web development and as general-purpose programming language. Learn how to use php in html using this simple tutorial.
HTML can be used inside PHP page using “echo” statement.
A PHP script starts with . PHP script uses a built-in PHP function “echo” to output something on a web page. The example code is given below to show how to use php in html.

HTML PHP:


<?php
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
?>
The HTML tags are used inside php by using the echo statement.
Example :


<?php
echo “”;
echo “”;
echo “”;
echo “

This is a sample example to display html using php

“;
echo “”;
echo “”;
?>

Result :

This is a sample example to display html using php

Leave a Reply

Your email address will not be published. Required fields are marked *