looping through multidim array

From: Date: Thu, 16 Jan 2003 12:24:20 +0000
Subject: looping through multidim array
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7219@lists.php.net to get a copy of this message
hi i try to loop through a multidim array. but i didn't get everything out. here is the array and the smarty part ------------------------------------------------------- Array (2) 0 => Array (10) id => 1 name => sam jones street => Squarestreet 0 => fon 1 => Array (4) 0 => 0587 / 4 01 99 77 1 => empty 2 => empty 3 => empty 1 => Array (10) id => 2 name => John Millter street => Mainstreet 0 => fon 1 => Array (4) 0 => 0127 / 58 87 47 1 => 025789 / 69713 2 => empty 3 => empty -------------------------------------------------------- When I tried the simple loop everything works fine. --------------------------------------------- {section name="results" loop=$results} {$results[results].name} {$results[results].street} {/section} --------------------------------------------- but when i try to get the inner array-values of fon i tried this the fon-array didn't work --------------------------------------------- {section name="results" loop=$results} {$results[results].name} {$results[results].street} {section name="fon" loop=$results[results].fon} {$results[results].fon[fon].fon} {/section} {/section} --------------------------------------------- what went wrong? Am i doing the wrong way?

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