este es el codigo que tengo.
Código PHP:
Ver original
$pos = 5 + $i; $k = $k - $numero[$i]; $campo[$pos]=$Valores[$i]; $campo[$pos + 1] = $Valores[$i + 1]; } $carruselOp_1[] = $campo; }
y este es el resutado que me da.
Código PHP:
Ver original
( [0] => 1 [1] => Carrousel [2] => 1 [3] => 1 [4] => 0 [5] => 1 [6] => 3 [7] => [8] => [9] => [10] => [11] => created DESC ) ( [0] => 1 [1] => Carrousel [2] => 1 [3] => 1 [4] => 0 [5] => [6] => 3 [7] => 2 [8] => [9] => [10] => [11] => created DESC ) ( [0] => 1 [1] => Carrousel [2] => 1 [3] => 1 [4] => 0 [5] => [6] => [7] => 2 [8] => AR [9] => [10] => [11] => created DESC ) ( [0] => 1 [1] => Carrousel [2] => 1 [3] => 1 [4] => 0 [5] => [6] => [7] => [8] => AR [9] => 1 [10] => [11] => created DESC ) ( [0] => 1 [1] => Carrousel [2] => 1 [3] => 1 [4] => 0 [5] => [6] => [7] => [8] => [9] => 1 [10] => 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 [11] => created DESC )
lo que necesito es que me realice las combinaciones de [5][6], [5][7], [5][8], [5][9], [5][10], [6][7], [6][8], [6][9], [6][10], [7][8].... y asi, realizando las demas conbinaciones.
Saludos
Lucarto