Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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; ?>
 
PREVIOUS NEXT
Tagged: #php #html #template #conditions
ADD COMMENT
Topic
Name
5+7 =