Re: Embedding foreach loops

From: Date: Mon, 10 Aug 2009 22:04:23 +0000
Subject: Re: Embedding foreach loops
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-296571@lists.php.net to get a copy of this message
I can't seem to get my foreach loops to work, will PHP parse embedded loops?
yes.
Is this something I need to have in a database to work?
no, you can do it with the arrays... but it may be easier to work with over the long run if that data was in a db. Anyway right after you finish creating the array and it's embedded arrays, in your code, then add this: var_dump($shows); //--so you can see what you just created. If it looks right, THEN go on bothering to try and parse it with your (embedded) foreach's { ------------ John Butler (Govinda) govinda.webdnatalk@gmail.com

« previous php.general (#296571) next »