if we add php code the what will be file extension code example Example: php file extension $ext = end(explode(".",file_name));