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
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