Research & Documentation 02 Php Net

Research & Documentation 02 Php Net

__LINE__

__LINE__ is a magic constant that brings back the line number that the code is entered on. See the line number below as an example:

11

__FILE__

__FILE__ is a magic constant that brings back the full path name of the current file. See the path name for this page below as an example:

/var/www/vhosts/abaeb.bitweb1.nwtc.edu/httpdocs/php/research-documentation/02-php-net.php

__DIR__

__DIR__ is a magic constant that brings back the directory of the current file which is basically the full path minus the actual name of the file. See the directory for this page below as an example:

/var/www/vhosts/abaeb.bitweb1.nwtc.edu/httpdocs/php/research-documentation

__FUNCTION__

__FUNCTION__ is a magic constant that brings back the function name of a function. Please see the function name below as an example:

myExampleFunction

Resources