troubles with printing multi-dimensional array

From: Date: Sat, 09 Mar 2002 17:17:47 +0000
Subject: troubles with printing multi-dimensional array
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2999@lists.php.net to get a copy of this message
Hi, i decide to ask for your help after several days of trying to print multi dimensional array like this: Array ( [0] => Array ( [0] => something ) [1] => Array ( [1] => fooo [2] => baaaar [3] => anything ) ) i'm experimenting with this smarty code (from docs): {section name=cat loop=$ARRAY} {section name=link loop=$INNER_ARRAY[cat]} {$INNER_ARRAY[cat][link]}<BR> {/section} {/section} but it doesn't work because it prints only ARRAY[0] and two records from ARRAY[1]. maybe ARRAY has only two first dimension records? so, the question is, how can i display multi-dimensional array with variable number of records in second dimension? thank you, jakub suchy A.I.N -- jakub suchy [ jakub@salon.cz ] PGP key: http://gargamel.or.cz/meba/public.key

« previous php.smarty.general (#2999) next »