Re: [SMARTY] Variable type in smarty?
| From: | boots | Date: | Thu, 26 Aug 2004 23:28:22 +0000 |
| Subject: | Re: [SMARTY] Variable type in smarty? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11729@lists.php.net to get a copy of this message | ||
--- John Nichel <john@kegworks.com> wrote:
> I've looked all thru the manual and can't find any type of function
> to determine if a variable is an integer in smarty. Is this
possible?
Use the PHP function:
{if is_int($smarty_var)} is an integer {/if}
xo boots