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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -