Examveda
Examveda

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

A. Hello you! How are you today?

B. GREETING

C. GREETING, Hello you! How are you today?

D. “GREETING”,”Hello you! How are you today?”

Answer: Option A

Solution(By Examveda Team)

The define() function defines a constant.

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions