I need to break an array into smaller arrays using a deliminator such as a space, not using a certain numbers of chars (therefore array_chunk will not work for this and these answers How to break an array into a specified number of smaller arrays? is not relevant for the same reason).
Example:
$array1 = ("One two three","four five six","seven eight nine");
Would like to split "One two three" into three elements in one array (using a space as deliminator) and the same for the next two elements. This can be split into multidimensional array as well.