Learn Magic Constants
These are predefined constants and can be changed upon their usage . These start with double underscore (__) and end with same .
These are same as predefined constants .Because they can change values , they are magic constant.
See someconstants see below:
|__FILE__||It define the full path with filename|
|__LINE__||Signifies full path and record name of the file. In case it is used inside an include, name of incorporated file is returned.|
|__FUNCTION__||Symbolizes full directory path from the file. Equivalent to dirname(__file__). It will not have a walking slash unless it is a root directory. It also resolves symbolic link.|
|__CLASS__||Signifies the function name exactly where it is used. When it is employed outside regarding any function, then it will return blank.|
|__DIR__||This is the directory of a file.|
|__METHOD__||This is method name of a class.|
|__NAMESPACE__||Represents the name of the current namespace.|