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 -

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

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