types - Why do we consider ClassName::class as magic constant in php, if it is?
Get the solution ↓↓↓- Every magic method starts with
__
and magic constants even ends with__
, exceptClassName::class
i.e. specified as magic constant in docs. - Isn't this
ClassName
referring to any replaceable values followed by scope resolution operatorand class keyword.
So, is it magic constant composed of keyword and operator or is it mistake in Magic constants docs?
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: ftp_put(): can't open that file: no such file or directory
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.