Examveda
Examveda

Which one of the following is a constant variable?

A. const $name

B. const $NAME

C. constant NAME

D. const NAME

Answer: Option D

Solution(By Examveda Team)

Constants are not prefixed with a dollar sign like regular properties. By convention, they are often named using only uppercase characters

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept