Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Array help

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
zivko
Smarty n00b


Joined: 27 Mar 2007
Posts: 0

PostPosted: Tue Mar 27, 2007 2:34 pm    Post subject: Array help Reply with quote

array(14) { [""]=> NULL ["Gra?evinarstvo i Projektovanje"]=> NULL ["Javna preduze?a i Institucije"]=> NULL ["Kompjuteri i Telekomunikacije"]=> NULL ["Kultura i Obrazovanje"]=> NULL ["Mediji i Informisanje"]=> NULL ["Osiguranja i finansije"]=> NULL ["Proizvodnja i Poljoprivreda"]=> NULL ["Saobra?aj i Vozila"]=> NULL ["Trgovina"]=> array(2) { [0]=> array(1) { ["naziv"]=> string(22) "Akomulatori i baterije" } [1]=> array(1) { ["naziv"]=> string(Cool "Prehrana" } } ["Ugostiteljstvo, Turizam i Sport"]=> NULL ["Usluge i Zanatstvo"]=> array(5) { [0]=> array(1) { ["naziv"]=> string(10) "Izdavastvo" } [1]=> array(1) { ["naziv"]=> string(24) "Izrada,montaza namestaja" } [2]=> array(1) { ["naziv"]=> string(15) "Pogrebne usluge" } [3]=> array(1) { ["naziv"]=> string(25) "Servisi Mobilnih telefona" } [4]=> array(1) { ["naziv"]=> string(26) "Masinska i Termicka obrada" } } ["Zabave i Proslave"]=> NULL ["Zdravstvo i Nega"]=> NULL }




how to display this array in smarty....

PLZ......HELP
Back to top
View user's profile Send private message
toma
Smarty Regular


Joined: 25 Apr 2003
Posts: 62

PostPosted: Fri Mar 30, 2007 5:07 am    Post subject: Reply with quote

You'll probably want to flip it, do a foreach iteration, etc. etc.
Back to top
View user's profile Send private message Visit poster's website
Hielke Hoeve
Smarty Elite


Joined: 06 Jan 2006
Posts: 406
Location: Netherlands

PostPosted: Fri Mar 30, 2007 11:45 am    Post subject: Reply with quote

http://smarty.php.net/manual/en/language.function.foreach.php
_________________
Debug XHTML Compliance
SmartyPaginate
Smarty License Questions
---
(About Unix) The learning curve is full of aha! moments, such as that glorious day that the full beauty of grep and, later, find is revealed in all its majesty. --- Robert Uhl <ruhl@4dv.net>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP