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

objective c - Can't build GCM with Protobuf in Xcode -

ember.js - EmberJS Model find not up-to-date with underlying store -

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