Skip to content

About

PHP helper function that splits an array into N number of evenly distributed partitions (i.e. split a list into N columns). Can be used generally in PHP projects or in WordPress as a plugin (for which it has the requisite layout).

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Array Partition

Helper function that splits an array into N number of evenly distributed partitions (i.e. split a list into N columns). Can be used generally in PHP projects or in WordPress as a plugin (for which it has the requisite layout).

This plugin is available in the WordPress Plugin Directory: https://wordpress.org/plugins/array-partition/

Installation

Use as a general PHP helper:

  1. Include the includes/array_partition.php file in your code.
  2. Use c2c_Array_Partition::partition() in your own code. (The c2c_array_partition() function that is only available when loaded as a WordPress plugin.).

Use as a WordPress plugin:

  1. Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically /wp-content/plugins/).
  2. Activate the plugin through the 'Plugins' admin menu in WordPress
  3. Use the c2c_array_partition() function in your template(s) or code as desired.

Additional Documentation

Support

Commercial support and custom development are not presently available. You can raise an issue on GitHub or post in the plugin's support forum on WordPress.org.

If the plugin has been of benefit to you, how about submitting a review for it in the WordPress Plugin Directory or considering a donation?

License

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

About

PHP helper function that splits an array into N number of evenly distributed partitions (i.e. split a list into N columns). Can be used generally in PHP projects or in WordPress as a plugin (for which it has the requisite layout).

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages