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

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -