I assume your source is a textfile or something and that is what this example is made on :
<?php
// put data into an array
$data = file('<your_file>');
// row 1 is the first row
$row = 1;
$col = 1;
// run through all elements in array
while(list($index, $value) = each($data)) {
// if element contains nothing else than a newline, a new row is located
if ($value == "\n") {
// col 1 is the first column
$col = 1;
// advance to the next row
$row++;
echo "<br>\nRow.nr. $row<br>\n";
} else { // another columns is found, show it!
echo "Col.nr. $col contains '$value'<br>\n";
// advance to the next (possible) coloumn
$col++;
}
}
?>
The whole idea is to check each line to see if it contains a newline-char, if it is, begin a new row, else show the content of it and advance to the next element.
PS : If it doesn't help you at all, feel free to contact me, k'?