Answers for "php html template if conditions"

PHP
0

php html template if conditions

<?php if( $condition ): ?>
    <a href="http://yahoo.com">This will only display if $condition is true</a>
<?php elseif($anotherCondition) : ?>
    more html
<?php else : ?>
    even more html
<?php endif; ?>
Posted by: Guest on August-06-2021

Browse Popular Code Answers by Language