Provides a helper function to split an array into N number of evenly distributed partitions (i.e. split a list into N columns)
allows you to specify the number of elements per partition, not how many partitions you want. (See Description.).
For an array with 12 elements, if you requested a chunk size of 2, you would get back an array of 6 sub-arrays (the original elements grouped into arrays of 2 elements). With
array_partition(), if you requested 2 partitions, you would get back an array of 2 sub-arrays (the original elements grouped into 2 arrays).
Requires: 1.2 or higher
Compatible up to: 4.5.5
Last Updated: 9 months ago
Active Installs: Less than 10
Got something to say? Need help?