How to access to elements of an asociative arrey
| From: | Zoran Knezevic | Date: | Fri, 31 Oct 2003 22:45:34 +0000 |
| Subject: | How to access to elements of an asociative arrey | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10487@lists.php.net to get a copy of this message | ||
OK this is from debug console:
{$dump} Array (9)
oglas => Array (11)
grad_id => 1
naziv => empty
proizvodjac_id => 1
cijena => empty
valuta_id => 1
telefon => empty
godiste => empty
kilometraza => empty
registracija_id => 5
email => empty
avail => Y
reg_do_Month => 10
reg_do_Day => 31
reg_do_Year => 2003
oprema => Array (11)
1 => .iber
2 => .iber elektriиni
3 => centralna brava
4 => servo volan
5 => ABS
6 => elektro-podizaиi stakla
7 => elektro retrovizori
8 => grijalje sjedi.ta
9 => klima ureрaj
10 => muzika
11 => ful oprema
Date_Month => 10
Date_Day => 31
Date_Year => 2003
I want to access to {$dump[5].oprema} but it does not go, also I tried {$dump[5][4]}
and {$dump[4][5]} nothing was printed ... 'ABS' is expected but nothing shows.