Research & Documentation 02 Magic Constants
PHP.NET - Magic Constants
_LINE_
The purpose of the _LINE_ Magic constant is to display the current line number that the file is set upon. The example below will echo the constant _LINE_, displaying that it is placed on line number 13.
The Line this file is processed on is 13Resources
_FILE_
This magic constant will return a full path and name of a file that is being called.
The Path of this file is: /var/www/vhosts/bfranco.bitweb1.nwtc.edu/httpdocs/php/research-documentation/02-magic-constants.phpResources
__DIR__
This magic constant will return the directory of the file and if used within an include, then the included files directory will be returned.
The directory of the file is :/var/www/vhosts/bfranco.bitweb1.nwtc.edu/httpdocs/php/research-documentationResources
__FUNCTION__
The purpose of the magic constant of "__FUNCTION__" is to return and display the name of the following function. The function being a piece of code that will take another input as a parameter to process and then return its value. This can be used multiple times as a built-in feature.
The name of my function is: myFunction