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