PrepAway - Latest Free Exam Questions & Answers

How can the constant defined below be accessed from within PHP?

How can the constant defined below be accessed from within PHP?
<code>
class myClass {
const FOO = ‘BAR’;
}
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
myClass::$FOO

B.
myClass::$$FOO

C.
myClass::FOO

D.
myClass::foo

E.
$foo::myClass

One Comment on “How can the constant defined below be accessed from within PHP?


Leave a Reply

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