Version: 1.1.2 Adds function c2c_array_partition() to split an array into N number of evenly distributed partitions (useful for splitting a list into
<?php
$topics = array( "ant", "bear", "cat" );
print_r( c2c_array_partition( $topics, 5 ) );
?>
=>
Array
(
[0] => Array
(
[0] => ant
)
[1] => Array
(
[0] => bear
)
[2] => Array
(
[0] => cat
)
[3] => Array
(
)
[4] => Array
(
)
)
Also see Description section for another example.
Requires: 1.2 or higher
Compatible up to: 3.3.2
Last Updated: 2011-7-15
Downloads: 277
Got something to say? Need help?