Vidyalelo
PHP · Q38

Functions

Programming · PHP · question 38

Q38

What will be the output of the following PHP code? () define("const","I am awesome!"); echo constant("const"); one(); ?>

A.
I am awesome!!
Answer
B.
const
C.
const, I am awesome!!
D.
“const”,”I am awesome!”

Answer: Option A

Solution

Answer: Option A
Solution:
Using the define function to define the constant “const”.