Re: arrays

From: Date: Sun, 15 Dec 2002 18:55:48 +0000
Subject: Re: arrays
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-128342@lists.php.net to get a copy of this message
this should work: for ($i=0; $i<5; $i++) { $mypics[$i] = $picture; } Edward Peloke wrote: > 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

« previous php.general (#128342) next »