<? function test($num) { for ($i=0; $i < $num; $i++) $array[$i+10] = chr(32+$i); return $array; } $a = test(50); reset($a); while(list($key,$val) = each($a)) { echo "Element ". $key ." és \"" . $val . "\". <br>"; } ?>