endif in php code example Example: php endif <?php $a = 4; if($a < 5): echo "Less than five"; endif; ?>