Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/04/2012, 08:00
Avatar de oscartt67
oscartt67
 
Fecha de Ingreso: abril-2012
Ubicación: fonollosa
Mensajes: 481
Antigüedad: 12 años
Puntos: 97
Respuesta: Simplificar array

Código PHP:
<?php
 
$my_Array 
= array (  
 array ( 
'name' => "Miguel",'cuantos' => ),
 array ( 
'name' => "Juan",'cuantos' => 
);
foreach(
$my_Array as $i=>$prop){
    
$new_array[$prop["name"]]=$prop["cuantos"];
}
var_dump($new_array);
            
?>

prueba a ver que tal....
saludos!