Examveda
Examveda

What will be the output of the following PHP code?
<?php
define("GREETING1","Hello you! How are you today?");
define("GREETING2","Hello you! How are you today?");
define("GREETING3","Hello you! How are you today?");
echo defined("GREETING");
?>

A. 1

B. 0

C. 3

D. 4

Solution(By Examveda Team)

The defined() function checks whether a constant exists.

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions