(3) PHP Error Spotting Questions and Answers

  1. <?php

    echo $i = 5 *(10);

    ?>

  2. <?php

    echo $i = 5 * /* Multiplication */ (10);

    ?>

  3. <?php

    echo $i *= 5;

    ?>

  4. <?php

    $i = 0;

    echo $i *= 5;

    ?>

View Answer
  1. <?php

    $5 = 5;

    ?>

  2. <?php

    $i;

    ?>

  3. <?php

    $_;

    ?>

  4. <?php

    $@ = '';

    ?>

View Answer
  1. <?php

    echo 'John\'s birth day';

    ?>

  2. <?php

    echo "John said,\"I'm going home\"";

    ?>

  3. <?php

    echo 'John'."'s".' dbirthday';

    ?>

  4. <?php

    echo "John\'s birth day";

    ?>

View Answer