where are located php extension code example Example: php file extension $ext = end(explode(".",file_name));