PHP 5.5 has implemented a new feature, which consists of getting the class name through the keyword class
:
Example:
namespace testando;
class Teste{}
echo Teste::class; // testando\Teste;
This works correctly, as expected.
Now, I'd like to understand why, when the class does not exist, we get the output in the same way.
Example:
echo ClasseNaoDeclarada::class; //ClasseNaoDeclarada
Is there any special reason to get this name (where the class has not been declared)?