当前位置:网站首页>PHP Basics - PHP magic constants
PHP Basics - PHP magic constants
2022-07-24 09:24:00 【Chon.Wang】
PHP contain 9 A magic constant . Their values change as their position in the code changes .
| name | explain |
|---|---|
__LINE__ | The current line number in the file . |
__FILE__ | The full path and filename of the file . If used in the included file , Then return the included file name . |
__DIR__ | Directory of files . If used in included files , Returns the directory where the included files are located . It is equivalent to dirname(__FILE__). Unless it's the root directory , Otherwise, the name in the directory does not include the trailing slash . |
__NAMESPACE__ | The name of the current namespace . |
__TRAIT__ | Trait Name .Trait The name includes the scope it is declared ( for example Foo\Bar). |
__CLASS__ | The name of the current class . The class name includes its declared scope ( for example Foo\Bar). When used in trait In the method ,CLASS Is to call trait The name of the class of the method . |
__FUNCTION__ | The name of the current function . Anonymous functions are {closure}. |
__METHOD__ | Class . |
ClassName::class | Full class name . |
边栏推荐
- How should tiktok shop cooperate with live broadcast in the background?
- CodeBlocks shortcut key operation Xiaoquan
- 2021 robocom world robot developer competition - undergraduate group (Preliminary) problem solution
- How to judge and analyze NFT market briefly through NFT go?
- Re6:读论文 LeSICiN: A Heterogeneous Graph-based Approach for Automatic Legal Statute Identification fro
- js定位大全获取节点的兄弟,父级,子级元素含robot实例
- How should tiktok account operate?
- Assignment operator (geritilent software - Jiuye training)
- dp最长公共子序列详细版本(LCS)
- 《动手学深度学习》(七) -- 边界框和锚框
猜你喜欢

Matlab各函数说明

如何通过NFT GO,来简要判断、分析NFT市场?

Es document CRUD
![[assembly language practice] (II). Write a program to calculate the value of expression w=v- (x+y+z-51) (including code and process screenshots)](/img/0d/c8042ce5019d7dc5414dde5ebf1e8d.jpg)
[assembly language practice] (II). Write a program to calculate the value of expression w=v- (x+y+z-51) (including code and process screenshots)

Problems and abuse of protocol buffers

Aruba learning notes 06 wireless control AC basic configuration (CLI)

Nuxt 路由切换后 asyncData 跨域报错

MySQL基础篇(一)-- SQL基础

Gnuplot software learning notes

Let's test 5million pieces of data. How to use index acceleration reasonably?
随机推荐
[Luogu p5829] [template] mismatch tree (string) (KMP)
One year after I came to Ali, I ushered in my first job change
Makefile variables and dynamic library static library
Why is TCP a triple handshake
Racecar multi-point navigation experiment based on ROS communication mechanism
Nuxt 路由切换后 asyncData 跨域报错
科目1-3
Firewalld firewall related commands
[MySQL] - deep understanding of index
MySQL基础篇(一)-- SQL基础
CUDA day 2: GPU core and Sm core components [easy to understand]
Vim: extend the semantic analysis function of YCM for the third-party library of C language
Tang Yudi opencv background modeling
How to judge and analyze NFT market briefly through NFT go?
S2b2b system standardizes the ordering and purchasing process and upgrades the supply chain system of household building materials industry
Hands on deep learning (VII) -- bounding box and anchor box
Getting started with web security - open source firewall pfsense installation configuration
Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS
Detailed sequence traversal of leetcode102 binary tree
[example of URDF exercise based on ROS] use of four wheeled robot and camera