<?php
$nome_arquivo = "Icon.png";
$novo_nome = pathinfo($nome_arquivo, PATHINFO_FILENAME
) . '.zip'; echo $novo_nome; // Retorna "Icon.zip"
?>
PD9waHAKJG5vbWVfYXJxdWl2byA9ICJJY29uLnBuZyI7CiRub3ZvX25vbWUgPSAgcGF0aGluZm8oJG5vbWVfYXJxdWl2bywgUEFUSElORk9fRklMRU5BTUUpIC4gJy56aXAnOwplY2hvICRub3ZvX25vbWU7IC8vIFJldG9ybmEgIkljb24uemlwIgo/Pg==