What is the output of the following code?
What is the output of the following code?
The output of the provided code will be 'MyNamespace\Test'. In PHP, using the `::class` constant on a class returns the fully qualified name of the class, including its namespace. Therefore, since the class Test is defined within the namespace MyNamespace, the output will be 'MyNamespace\Test'.
The correct answer is A : MyNamespace\Test
Answer is A: namespace MyNamespace; class Test { } echo Test::class; output: MyNamespace\Test