I need this conclusion.
1 3 5
2 4 6
I want to use an array function, for example array(1,2,3,4,5,6). If I edit this array as array(1,2,3), it means that the output should be displayed as
1 2 3
A concept is a maximum of 3 columns. If we give array(1,2,3,4,5), it means that the conclusion must be
1 3 5
2 4
Suppose we give array(1,2,3,4,5,6,7,8,9), then this means that the conclusion
1 4 7
2 5 8
3 6 9
i.e. a maximum of 3 columns. Depends on this input, rows will be created with three columns.
Is this possible with PHP? I do some research and development on array functions. I think it's possible. Will you help me?
For more information:
* input: array(1,2,3,4,5,6,7,8,9,10,11,12,13,14)
* output:
1 6 11
2 7 12
3 8 13
4 9 14
5 10