Tengo este codigo en JSON
Código:
Y lo que quiero es mostrar en un echo de php la 'url' lo estoy haciendo de esta manera.{ "video": { "duration": "3:10", "views": "333249", "video_id": "44bc40f3bc04f65b7a35", "rating": "74.17", "ratings": 391, "title": "Titulo", "url": "http://prueba.com/videoprueba", "default_thumb": "http://imagen.com", "thumb": "http://imagen.com/70.jpg", "publish_date": "2008-03-28 13:59:35", "thumbs": [ { "size": "large_hd", "width": "320", "height": "180", "src": "http://prueba.com/imagen/1.jpg" }, { "size": "large_hd", "width": "320", "height": "180", "src": "http://prueba.com/image2/2.jpg" } ], "tags": [ { "tag_name": "video" }, { "tag_name": "tecnologia" }, { "tag_name": "it" } ], "autor": [ ] } }
Código:
Pues no me muestra nada. Ayudenme <?php $json= ' /*Codigo JSON aca*/ ' ; $array=json_decode($json); echo $array[video]->url; ?>
![triste](http://static.forosdelweb.com/fdwtheme/images/smilies/frown.png)
Saludos y gracias