Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? if ($condition): ?>
- <p>Content</p>
- <? elseif ($other_condition): ?>
- <p>Other Content</p>
- <? else: ?>
- <p>Default Content</p>
- <? endif; ?>
- <?php if ($foo) { ?>
- <div class="mydiv">Condition is true</div>
- <?php } else { ?>
- <div class="myotherdiv">Condition is false</div>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement