array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'reflectionconstant.getfilename.php', 1 => 'ReflectionConstant::getFileName', 2 => 'Gets name of the defining file', ), 'up' => array ( 0 => 'class.reflectionconstant.php', 1 => 'ReflectionConstant', ), 'prev' => array ( 0 => 'reflectionconstant.getextensionname.php', 1 => 'ReflectionConstant::getExtensionName', ), 'next' => array ( 0 => 'reflectionconstant.getname.php', 1 => 'ReflectionConstant::getName', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/reflection/reflectionconstant/getfilename.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 8 >= 8.5.0)
ReflectionConstant::getFileName — Gets name of the defining file
Gets the filename of the file in which the constant has been defined.
У цієї функції немає параметрів.
Returns the filename of the file in which the constant has been defined.
If the constant is defined in the PHP core or in a PHP extension,
false is returned.