I have exploded a file line into a single dimensioned array. I want to take the contents of the single deminsioned array and separate it out into a multi-dimensioned array.
In the for loop I have code like this:
$arr1[0][$j] = $arr2[$j];
where the j index is changing. The result is only the first character of the arr2 is being deposited into arr1 for each element of the array. arr2 is still intact with complete field values.
What is causing this and is there something I should be doing (such as a cast...tried casting arr2 with (string) and that didn't work) to insinuate a complete field transfer?
In the for loop I have code like this:
$arr1[0][$j] = $arr2[$j];
where the j index is changing. The result is only the first character of the arr2 is being deposited into arr1 for each element of the array. arr2 is still intact with complete field values.
What is causing this and is there something I should be doing (such as a cast...tried casting arr2 with (string) and that didn't work) to insinuate a complete field transfer?
Comment