Excuse me: In the following PHP code, what does the class name::class mean?
protected $apiClass = [
AccessToken::class,
JsCodeToSession::class,
CreateQrCode::class,
];
曾经蜡笔没有小新2017-06-30 09:56:29
Contains fully qualified name
<?php
namespace NS {
class ClassName {
}
echo ClassName::class; //输出NS\ClassName
}
?>
PHP official website address