Im using this function to browse arrays from database. For example data:
<?php
$data = array(
array('row 1-cell 1','row 1-cell 2'),
array('row 2-cell 1','row 2-cell 2'),
array('row 3-cell 1','row 3-cell 2'),
);
while($row=array_shift($data)) {
echo $row[0];
}
?>
Output:
row 1-cell 1
row 2-cell 1
row 3-cell 1