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.3.1
Last Updated: 3 months ago
Active Installs: Less than 10
Got something to say? Need help?