Exam4Training

What is the result of the following code?

What is the result of the following code?

define(‘PI’, 3.14);

class T

{

canst Pl = Pl;

}

class Math

{

canst Pl = T::PI;

}

echo Math::PI;
A . Parse error
B . 3.14
C . Pl
D . T::PI

Answer: B

Exit mobile version