PrepAway - Latest Free Exam Questions & Answers

What is the result of the following code?

What is the result of the following code? define(‘PI’, 3.14); class T { const PI = PI; } class
Math { const PI = T::PI; } echo Math::PI;

PrepAway - Latest Free Exam Questions & Answers

A.
PI

B.
T::PI

C.
Parse error

D.
3.14


Leave a Reply

Your email address will not be published. Required fields are marked *