Re[2]: [SMARTY] if operators suggestions

From: Date: Thu, 11 Apr 2002 14:52:12 +0000
Subject: Re[2]: [SMARTY] if operators suggestions
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3624@lists.php.net to get a copy of this message
C> Smarty allows you to use PHP functions inside an if statement, so you could C> use preg_match (or some other regular expression function). C> {if preg_match('/find me/', 'can you find me') } C> found C> {else} C> not found C> {/if} Yes yes, but i rather use a built-in function, i don't like PHP code in templates :)

« previous php.smarty.general (#3624) next »