| Viewed 197 times

How to use PHP in HTML


How to use PHP in HTML

1 Answer
Mohammad Qandeel
Answered
6

To use PHP in HTML follow these steps.

  1. your page extension must be .PHP
  2. use any tags from these 
<?php 
//write php code here
  ?>

or

<?= 
//write php code here
 ?>

or 

<? 
  //write php code here
 ?>

 



Related Questions