get filename which included the current file php code example Example: php current file name basename(__FILE__, '.php');