Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/07/2012, 12:48
mhax
 
Fecha de Ingreso: agosto-2009
Ubicación: Cartagena, Colombia
Mensajes: 516
Antigüedad: 14 años, 8 meses
Puntos: 13
Pregunta Array de array

Tengo esta estructura de array:
Código PHP:
Ver original
  1. (
  2.     ['Car1'] => Array
  3.         (
  4.             [0] => Array
  5.                 (
  6.                     [id] => 6
  7.                     [nombre] => Recibidas
  8.                     [tipo] => Car1
  9.                     [id_owner] => 0
  10.                 )
  11.  
  12.         )
  13.  
  14.     ['Car2'] => Array
  15.         (
  16.             [0] => Array
  17.                 (
  18.                     [id] => 5
  19.                     [nombre] => Cartas
  20.                     [tipo] => Car1
  21.                     [id_owner] => 0
  22.                 )
  23.  
  24.         )
  25.  
  26.     ['Car3'] => Array
  27.         (
  28.             [0] => Array
  29.                 (
  30.                     [id] => 2
  31.                     [nombre] => Facturas
  32.                     [tipo] => Car1
  33.                     [id_owner] => 0
  34.                 )
  35.  
  36.         )
  37.  
  38.     ['Car4'] => Array
  39.         (
  40.         )
  41.  
  42.     ['Car5'] => Array
  43.         (
  44.         )
  45.  
  46.     ['Car6'] => Array
  47.         (
  48.             [0] => Array
  49.                 (
  50.                     [id] => 3
  51.                     [nombre] => Correspondencia
  52.                     [tipo] => Car1
  53.                     [id_owner] => 0
  54.                 )
  55.  
  56.             [1] => Array
  57.                 (
  58.                     [id] => 4
  59.                     [nombre] => Ventas
  60.                     [tipo] => Car1
  61.                     [id_owner] => 0
  62.                 )
  63.  
  64.             [2] => Array
  65.                 (
  66.                     [id] => 3
  67.                     [nombre] => Correspondenciawww
  68.                     [tipo] => Doc0
  69.                     [id_owner] => 0
  70.                 )
  71.  
  72.         )
  73.  
  74. )
Cuando trato de acceder a el con esto: $lista['Car1'][0]['id']
me muestra el siguiente error:
Undefined index: Car6

A que se debe esto?
__________________
Un camino de mil millas comienza por el primer paso. Lao Tse

Última edición por mhax; 02/07/2012 a las 12:54