There is two common ways of doing this. Have an array of arrays (multidimensional array) or have an array that contains values that are delimited by a value (|| for example) that as you loop through the values, you perform an explode() on them....creating an additional array. I'll give an example of each:
A multidimensional array is simply an array, that has each value assigned as an array. To address the values inside you would use something like:
$array[innerarray][innerarrayvalue];
To use an array with the lines being strings that you perform an explode on, you would just do a foreach on the array and do an explode on the lines, then address them like a normal array:
foreach ($array as $subarray) {
$subarray = explode($delimiter, $subarray);
$subarray[0] = whatevervalue;
}
Does that make any sense?