Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/08/2017, 21:07
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Array Multidimension

podria ser algo asi, claro si el patro se mantiene:

Código PHP:
Ver original
  1. $arrUno =  array("0" => array("0"=>array("Nombre"   => "1_Marco",
  2.                                          "Apellido" => "2_Antonio"),
  3.                               "1"=>array("Nombre"   => "3_Tole",
  4.                                          "Apellido" => "4_Villa")
  5.                               ),
  6.  
  7.                  "1" => array("Nombre"   => "5_Pedro",
  8.                               "Apellido" => "6_Marcela"),
  9.  
  10.                  "2" => array("0"=>array("Nombre"   => "7_Fernanda",
  11.                                          "Apellido" => "8_Gabriela"),
  12.                               "1"=>array("Nombre"   => "9_Rocio",
  13.                                          "Apellido" => "10_Pamela")
  14.                               )
  15.                 );  
  16. $sale = array();
  17.  
  18. foreach ($arrUno as $key => $value) {
  19.   if(is_array($value)){
  20.  
  21.     foreach($value as $keyb => $valueb){
  22.       if(is_array($valueb)){
  23.         array_push($sale, $valueb);
  24.       }else{
  25.         array_push($sale,$value);
  26.       }
  27.  
  28.     }
  29.  
  30.   }
  31.  
  32. }
  33.  
  34. print_r($sale);
__________________
[email protected]
HITCEL