This is what I want to do. I have an array that I then want to split up into all the elements that it has. For example I have:
$originalArray = array(1,2,3,4,5);
And I want to split this array to look like this.
$array1 = array(1);
$array2 = array(2);
$array3 = array(3);
$array4 = array(4);
$array5 = array(5);
if the original array had more elements then I would like it to split into all those arrays.
for($i = 0; $i < count($originalArray); $i++ ){
/*this is where I am stuck, I would like it if the word "array" would be able to concat with the iterator $i to make $array1, $array2 and so on*/
$array.$i = array($originalArray[$i]);
}