Assume theres and array as :
$arr1 = array(1, 2, 3,
4, 5, 6,
7);
I would like to access each element of the array and print them using the functons reset(), key() and next() as:
for(reset($arr1); $element = key($arr1); next($arr1))
print($element. "\t". $arr1[$element] );
But the problem is the above lines doesnt work! It doesnt print the elements could you verify whats wrong with my coding and please correct it please...!