📅  最后修改于: 2022-03-11 14:53:36.696000             🧑  作者: Mango
$source_file = 'foo/image.jpg';
$destination_path = 'bar/';
rename($source_file, $destination_path . pathinfo($source_file, PATHINFO_BASENAME));