Provides a helper function to split an array into N number of evenly distributed partitions (i.e. split a list into N columns)
<?php $topics = array( "ant", "bear", "cat" ); print_r( c2c_array_partition( $topics, 5 ) ); ?>
Array (  => Array (  => ant )  => Array (  => bear )  => Array (  => cat )  => Array ( )  => Array ( ) )
Also see Description section for another example. Definitely check out the packaged unit test file as it contains various examples.
Requires: 1.2 or higher
Compatible up to: 4.5.2
Last Updated: 1 month ago
Active Installs: 10+
Got something to say? Need help?