Re: [SMARTY] finding array members
[email protected] (Mark Rogers)
| Newsgroups | php.smarty.general |
|---|---|
| Organization | Quarella Ltd |
| Message-ID | <[email protected]> |
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