RE: [SMARTY] Another array related question
| From: | luis | Date: | Mon, 14 Apr 2003 22:08:36 +0000 |
| Subject: | RE: [SMARTY] Another array related question | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9258@lists.php.net to get a copy of this message | ||
BTW: this can be found in the docs here:
http://smarty.php.net/manual/en/language.function.if.php
See an example using count :-)
{* you can also embed php function calls *}
{if count($var) gt 0}
...
{/if}
-----Original Message-----
From: Nancy Milligan [mailto:npm@cox.net]
Sent: Monday, April 14, 2003 5:16 PM
To: smarty-general@lists.php.net
Subject: [SMARTY] Another array related question
Is there anyway in Smarty to find out the number of elements in an
array? Or is there a way to return all the keys of an array as an
array? Or do people usually create some PhP code inside a Smarty
template to handle that?
Thanks!
Nancy M.