[Solved] Name of current file PHP


basename(__FILE__, '.php');

See also here: http://php.net/basename, or, if you like

pathinfo(__FILE__, PATHINFO_FILENAME);

This last one works also if the extension is different from .php without the need to specify it, see http://php.net/manual/en/function.pathinfo.php

5

solved Name of current file PHP