Find the bug #1 [PHP]

Iniciado por fermino, Septiembre 28, 2014, 10:55:12 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Septiembre 28, 2014, 10:55:12 PM Ultima modificación: Septiembre 30, 2014, 06:13:57 AM por fermino
El reto consiste en encontrar el error de éste código PHP. Por ahora, es bastante básico...

Si quieres ejecuta el código, pero mucho mejor si lo encuentras sin hacerlo ;)

EDITO: Olvidé aclarar que me debían enviar un MP con la solución...



Código: php
<?php
        $Json = '{"saludo":"Holi :3"}';
       
        $Data = json_decode($Json);
       
        echo $Data['saludo'];
?>



Ganadores:


  • variux
  • Oggy
  • arthusu
  • ANTRAX
  • BlackBlex
Visita mi blog: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Lo siento variux! :/

Tu respuesta era correcta pero había olvidado aclarar que era por MP la solución.

Agregado a la lista ;)
Visita mi blog: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Otro más! Oggy...
Visita mi blog: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.