Which One Of The Following Is The Right Way To Define A Constant #86
Which one of the following is the right way to define a constant?
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 PHP OOPs - PHP OOPs Basics - Quiz No.1.
Which one of the following is the right way to define a constant?
constant PI = “3.1415”;
const $PI = “3.1415”;
constant PI = ‘3.1415’;
const PI = ‘3.1415’;