<? Php
/****
****/
/***
=== Note ====
Magic constant
1: The value cannot be manually modified, so it is called a constant.
2: But the value changes with the environment, so it is called magic
--- Magic constant
_ FILE _ return the path of the current FILE.
Used to calculate the root directory of a website in framework development or website initialization scripts
_ LINE _ returns the current row number.
In the Framework, it can be used to record error information during debugging.
_ CLASS _ returns the current CLASS name
_ METHOD _ returns the current METHOD name.
***/
Echo 'the currently running is ',__ FILE __, 'file',' <br/> ';
Echo 'current in ',__ DIR __,' directory <br/> ';
Echo 'Hi, I am at ',__ LINE __,' LINE <br/> ';
Echo 'Hello, I am at ',__ LINE __,' LINE <br/> ';
Echo 'hehe, I am at ',__ LINE __,' LINE <br/> ';
Class Human {
Public static function t (){
Echo 'you are running ',__ CLASS __,' CLASS <br/> ';
Echo ',__ METHOD __, 'method ';
}
}
Human: t ();