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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php