Skip to content

Instantly share code, notes, and snippets.

View themogwi's full-sized avatar

Miguel Sainz Jr. themogwi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am themogwi on github.
  • I am themogwi (https://keybase.io/themogwi) on keybase.
  • I have a public key whose fingerprint is 020D 2176 1084 7B9B 49DB ED98 DD8E 7EE6 67B4 89F7

To claim this, I am signing this object:

@themogwi
themogwi / array_distribute.php
Created January 7, 2016 19:23
Evenly distribute array items across specified number of columns
<?php
/**
* Evenly distribute array items across specified number of columns
*
* @param array $array An array of items to distribute
* @param integer $columns Number of columns
* @return array
*/
public function array_distribute($array, $columns) {