i got this code:
$list = array("apple"=>0,"banana"=>0);
// set value to 1
while( $e = each($list) ) {
$e["value"] = 1;
}
// reset pointer
reset($list);
// show name and value
while( $e = each($list) ) {
echo $e["key"].' - '.$e["value"].'<br>';
}
i get this
apple - 0
banana - 0
I should get the value 1 for apple and banana, can anybody help me...... :-(