NogDog wrote:$slot = ceil($number / 8192);
The thing is that i have a nested array, so inside each of the 10240 group cells, there are 8192 cells.
I read somewhere that an example of nested array would be like this:
$var = array(
array(1, 2, 3, 4, 5),
array(12, 13, 14, 15),
array("item", "another item", "yet another item")
);
I need to know the group (outer cell) in which the inner cell is contained, given a random number from 1 to 8192x10240.
I'd appreciate any help.