NYCPHP Meetup

NYPHP.org

[nycphp-talk] Smarty String Comparison

Kshitij Bedi Kbedi at inta.org
Thu Dec 4 14:54:28 EST 2003


Hi there

Can someone tell me how to do case insensitive string comparison in smarty
templates.
and also how to trim strings while comparing them.

For e.g.
{if $var == "Var"} Display {/if} 
if this is the statement how to I change it so that it trims $var and does a
case insensitive compare with "Var" 



More information about the talk mailing list