Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/01/2014, 10:11
Avatar de Eleazan
Eleazan
 
Fecha de Ingreso: abril-2008
Ubicación: Ibiza
Mensajes: 1.879
Antigüedad: 16 años, 11 meses
Puntos: 326
Respuesta: Imprimir valor de json



Código PHP:
$json_string '{"Areas":1,"Tipos de Conectividad":1,"Departamentos":1 }';

$array_json json_decode($json_string);
foreach(
$array_json as $key => $value) {
     if(
$value == 1) echo $key;

¿algo así? ;)
__________________
>> Eleazan's Source
>> @Eleazan