Say i start with a simple array (which could be theoretically of any length):
$ids = array(1,2,3,4);
What it the best solution for splitti
$pair = array_chunk($ids, 2);
http://www.php.net/manual/en/function.array-chunk.php