PHP how to do unless string match..? -
i have code:
<?php unless($category['name'] == "offer") { ?> <p>write unless category name equal "offer"</p> <?php } ?>
i know wrong, how create unless statement in php there in rails?
<?php if ($category['name'] != "offer") { ?> <p>write unless category name equal "offer"</p> <?php } ?>
Comments
Post a Comment