Q:

What will be the output of the following PHP code ?

0

What will be the output of the following PHP code ?

<?php
function constant()
{
    define("GREETING", "Welcome to Narnia",true);
    echo greeting;
}
?>

  1. Welcome to Narnia
  2. greeting
  3. GREETING
  4. ERROR

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).Welcome to Narnia

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now