Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/12/2011, 08:20
Avatar de charlyalegret
charlyalegret
 
Fecha de Ingreso: septiembre-2011
Ubicación: Barcelona
Mensajes: 705
Antigüedad: 12 años, 7 meses
Puntos: 140
Respuesta: Array intervalo de valores 0-3 = 50...

No entiendo muy bien lo que pides...
podría conseguirse haciendo algo así?:

Código PHP:
Ver original
  1. $hola=array (
  2.     "0" => 50,
  3.     "1" => 50,
  4.     "2" => 50,
  5.     "3" => 50
  6. );
  7. for ($i = 4; $i < 2000; $i++) {
  8.     $x = 50;
  9.     $y = 0;
  10.     $hola=array (
  11.     "$i" => $x)
  12.     if ($y == 6) {
  13.         $x++;
  14.         $y = 0; }
  15. }

No sé si es esto ni si funcionaría bien ya que no lo he probado...

suerte!


Edito: me lo he pensado tanto que se me han adelantado!! :P