how to insert if php in html

145

how to insert if php in html -

<?php if($condition) : ?>
   <a href=" website_name.com "> it is displayed iff $condition is met </a>
<?php elseif($another_condition) : ?>
   HTML TAG HERE
<?php else : ?>
   HTML TAG HERE
<?php endif; ?>

Comments

Submit
0 Comments