Re: arrays

From: Date: Tue, 05 Nov 2002 18:40:52 +0000
Subject: Re: arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122832@lists.php.net to get a copy of this message
If I understand your question, you are trying to store values into an array: for( $=0; $i<5; $i++) { ...get $picture from somewhere... $mypics[] = $picture; } To retrieve: foreach($mypics as $pic) { ...do something with $pic... } ----- Original Message ----- From: "Edward Peloke" <epeloke@echoman.com> To: <php-general@lists.php.net> Sent: Tuesday, November 05, 2002 12:44 PM Subject: [PHP] arrays Ok, very basic question, how do I am going through a loop 5 times, each time, I want to store a value into an array, do I simply set the value of $picture=array($mypics); and each time it loops it will take the current value of $picture and then I can get out each value by $mypics[0], $mypics[1], etc? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#122832) next »