Contact: aviboots(AT)netvision.net.il
39,938 questions
51,875 answers
573 users
$arr = array(1, 2, 3, 4, 5); while (list($key, $value) = each($arr)) echo "Index: $key - Value: $value"; /* run: Index: 0 - Value: 1 Index: 1 - Value: 2 Index: 2 - Value: 3 Index: 3 - Value: 4 Index: 4 - Value: 5 */