Flexy and variables as array keys
| From: | Lorenzo Alberton | Date: | Sat, 25 Sep 2004 10:26:13 +0000 |
| Subject: | Flexy and variables as array keys | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14639@lists.php.net to get a copy of this message | ||
Hi Alan, hi list,
I need something like this in a Flexy template:
===============================
{foreach:matrix,key,value}
{foreach:cell_numbers,cell}
value[{cell}][wwww]} <=== variable as array index
{end:}
{end:}
===============================
where
$matrix[$key] = array(
'wwww' => 'xxxx',
'yyyy' => 'zzzz',
);
and $cell_numbers is an array
with integer values
Any suggestion on how this can be implemented?
TIA
--
Lorenzo Alberton
http://pear.php.net/user/quipo