If reading from a file you can use a combination of fgetcsv and explode. i.e.
if the file contained lines like
A1,3|A2,4|A3,3|A4,5|A5,1,2,3,4|A6,2
A1,3|A2,4|A3,3|A4,5|A5,1,2,3,4|A6,2
A1,3|A2,4|A3,3|A4,5|A5,1,2,3,4|A6,2
A1,3|A2,4|A3,3|A4,5|A5,1,2,3,4|A6,2
to parse it you could use.
<PRE>
<?php
$fpr=fopen("filename.ext", "r") or die();
while ( $fields=fgetcvs($fpr, 1024, "|") )
{
for ( $loop=0; $loop<count($fields); $loop++ )
{
$bits=explode($fields[$loop], ",");
for ( $loop2=0; $loop2<count($bits); $loop2++ )
{
echo $bits[$loop2].", ";
}
echo "\n<BR>\n";
}
}
fclose($fpr);
?>
</PRE>
That should read the file in and display its contents. It can also be expanded to handle multi dimensional arrays by adding more for loops that way you could have 10 dimensional arrays and still parse them quite happily.
Mark.