Q:

What will be the output of the following PHP code ?

0

What will be the output of the following PHP code ?

<?php
define('GREETING_TEST', 'PHP is a scripting language', true);
echo GREETING_TESt;
$changing_variable = 'test';
echo constant('GREETING_' . strtoupper($changing_variable));
?>

  1. PHP is a scripting language
    PHP is a scripting language
  2. GREETING_TESt
  3. PHP is a scripting language
  4. PHP is a scripting language GREETING_TEST

All Answers

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

(a).PHP is a scripting language
PHP is a scripting language

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