(3) PHP Odd One Out

  1. <?php

    $J = 10;

    echo 'J value is: '.$J;

    ?>

  2. <?php

    $J = 10;

    echo "J value is: ".$J;

    ?>

  3. <?php

    $J = 10;

    echo "J value is: "+$J;

    ?>

  4. <?php

    $J = 10;

    echo "J value is: $J";

    ?>

View Answer
  1. array_push()

  2. count()

  3. array_merge()

  4. join()

View Answer
  1. $x = (2 == 3);

  2. $x = (2 === 3);

  3. $x = (2 !== 3);

  4. $x = (2 >= 3);

View Answer