Created
September 15, 2015 08:15
-
-
Save xto3na/d311349c89360b79a2b4 to your computer and use it in GitHub Desktop.
PHP - if else in html
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 ($product['quantity'] > 0) { ?> | |
<p class="product-exist">В наличии</p> | |
<?php } else { ?> | |
<p class="product-not-exist">Нет в наличии</p> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment