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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.