Re: [SMARTY] finding array members
Mark Rogers <[email protected]>
| Newsgroups | gmane.comp.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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php