Single Choice Not Set

QWhich one of the following is the right way to define a constant?

ID: #2580 Object Oriented Concept of PHP 1,525 views
Question Info
#2580Q ID
Not SetDifficulty
Object Oriented Concept of PHPTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A constant PI = ✔ ✖
  • B const $PI = ✔ ✖
  • C constant PI = ✔ ✖
  • D const PI = ✔ ✖
Correct Answer

Explanation

Class constants are created like: const NAME = ‘VALUE’;

Share This Question

Challenge a friend or share with your study group.