fork download
  1. <?php
  2. $nome_arquivo = "Icon.png";
  3. $novo_nome = pathinfo($nome_arquivo, PATHINFO_FILENAME) . '.zip';
  4. echo $novo_nome; // Retorna "Icon.zip"
  5. ?>
Success #stdin #stdout 0.02s 24472KB
stdin
Standard input is empty
stdout
Icon.zip