note 109284 deleted from function.array by tularis
| From: | tularis@php.net | Date: | Mon, 02 Jul 2012 15:22:38 +0000 |
| Subject: | note 109284 deleted from function.array by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189009@lists.php.net to get a copy of this message | ||
Note Submitter: hhaddow
----
with in a loop you must use something
$i='0';
while (something){
$i++;
$Value = $some_value;
$id[$i] = $Value;
}
not
$i='0';
while (something){
$i++;
$Value = $some_value;
$id = array($i => $Value);
}
as that will overwrite the old array