Voy al grano, tengo un array llamado $resultado. Sus keys son numéricos, y los valores son jSON's. Así:
Código json:
Ver original
{ "metadata.title": "", "metadata.description": "", "metadata.keywords": "", "metadata.robots": "", "metadata.author": "", "config.enable_comments": "0", "config.primary_category": "27" }
Necesito recuperar el valor de config.primary_category. Es decir, necesito recuperar el 27. ¿Cómo lo recupero? Intento recuperarlo así:
Código PHP:
foreach ($resultado as $key => $value) {
if ( is_object($value) ) {
echo $value->config.primary_category;
}
}
¿Me ayudan a recuperar el 27?
Saludos!
![Stress](http://static.forosdelweb.com/fdwtheme/images/smilies/stress.png)