📜  php 更改文件扩展名 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:38.231000             🧑  作者: Mango

代码示例1
$newExtension = 'txt';
$info = pathinfo($filename);
$filename = $info['dirname']."/".$info['filename'].'.'.$newExtension;