equal
deleted
inserted
replaced
|
1 <? |
|
2 function test($num) |
|
3 { |
|
4 for ($i=0; $i < $num; $i++) |
|
5 $array[$i+10] = chr(32+$i); |
|
6 return $array; |
|
7 } |
|
8 |
|
9 $a = test(50); |
|
10 reset($a); |
|
11 |
|
12 while(list($key,$val) = each($a)) |
|
13 { |
|
14 echo "Element ". $key ." és \"" . $val . "\". <br>"; |
|
15 } |
|
16 ?> |