PHP 魔法属性&方法

来源:互联网 发布:红旗linux桌面版 编辑:程序博客网 时间:2024/04/29 10:53
  • __FILE__ – The full path and filename of the file.
  • __DIR__ – The directory of the file.
  • __FUNCTION__ – The function name.
  • __CLASS__ – The class name.
  • __METHOD__ – The class method name.
  • __LINE__ – The current line number of the file.
  • __NAMESPACE__ – The name of the current namespace