Last active
February 8, 2022 22:08
-
-
Save sixtusagbo/b558ed31a88b1ddabab6a5b2d52b0bb5 to your computer and use it in GitHub Desktop.
HTML embedding in PHP if, elseif, and else conditionals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if($condition): ?> | |
<h1>Some Html</h1> | |
<?php elseif($otherCondition): ?> | |
<h1>Some Html</h1> | |
<?php else: ?> | |
<h1>Some Html</h1> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment