PHP Magic Constants

There are nine magical constants that change depending on where they are used. All these “magical” constants are resolved at compile time, unlike regular constants, which are resolved at runtime. These special constants are case-insensitive and are as follows: __LINE__: The current line number of the file.__FILE__: The full path and filename of the file.__DIR__:…