Re: [SMARTY] finding array members
| From: | Mark Rogers | Date: | Thu, 06 Apr 2006 16:09:22 +0000 |
| Subject: | Re: [SMARTY] finding array members | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13391@lists.php.net to get a copy of this message | ||
boots wrote:
> Well, one simple way is to use php's array_keys as a modifier:
>
> eg:
>
> {assign var=keys value=$record|array_keys}
Presumably that should be:
{assign var=keys value=$record|@array_keys}
.. to have array_keys act on the array as a whole, not on each array element individually.
--
Mark Rogers
More Solutions Ltd :: 0845 45 89 555