Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/04/2017, 17:58
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 10 años, 10 meses
Puntos: 379
Respuesta: Recorrer array dentro de otro array con key

Te aconsejo que leas la documentación
Código PHP:
Ver original
  1. $vars = array(
  2.         'SQL' => array(
  3.             '_SERVER' => 'localhost'
  4.         ),
  5.         'WEB' => array(
  6.             '_TITLE' => 'Prueba'
  7.         )
  8.     );
  9.    
  10. foreach($vars as $var) {
  11.     foreach($var as $key => $value) {
  12.         echo "$key : $value";
  13.     }
  14. }
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.