Thread
:
Modulus operator to get next division
View Single Post
11-26-2012, 08:31 AM
PM User
|
#
2
Ulysses69
New Coder
Join Date: May 2004
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
I have tried looking for no multiples and adding to the array until matched in a loop like so:
Code:
while ($groupsize % count($array) != 0) { $array = array_merge($array, $array); }
The above doesn't work though.
Last edited by Ulysses69; 11-26-2012 at
09:19 AM
..
Ulysses69
View Public Profile
Find More Posts by Ulysses69