PHP : PHP Magic constants


A few "magical" PHP constants (source php.net):


ref : http://be.php.net/manual/en/language.constants.predefined.php


current path (__FILE__) = ...hide online . something like "/path/scripts/php/php_reference_examples/filename.php"
see http://be.php.net/results.php?q=__FILE__&l=en&p=local

current line (__LINE__) = 64 (très utile pour le debug de pages)
see http://be.php.net/results.php?q=__LINE__&l=en&p=local

current function called (__FUNCTION__) = function "someFunction();" called.
see http://be.php.net/results.php?q=__FUNCTION__&l=en&p=local

current namespace (__NAMESPACE__) = __NAMESPACE__
see http://be.php.net/results.php?q=__NAMESPACE__&l=en&p=local

current class (__CLASS__) = __CLASS__

see http://be.php.net/results.php?q=__CLASS__&l=en&p=local
current method (__METHOD__) = __METHOD__

see http://be.php.net/results.php?q=__METHOD__&l=en&p=local


XHTML 1.0 STRICT