Re: [SMARTY] Checking if variable is integer
| From: | Monte Ohrt | Date: | Tue, 07 Dec 2004 14:46:38 +0000 |
| Subject: | Re: [SMARTY] Checking if variable is integer | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12020@lists.php.net to get a copy of this message | ||
You can use php functions in if statements.
{if is_int($foo)} ... {/if}
John Nichel wrote:
Is there a way in Smarty to check if a variable is an integer, or would I need to drop out into php for that?