move all files in a folder to another?

前端 未结 11 1989
一个人的身影
一个人的身影 2020-12-01 04:01

when moving one file from one location to another i use

rename(\'path/filename\', \'newpath/filename\');

how do you move all files in a fol

11条回答
  •  生来不讨喜
    2020-12-01 04:33

    try this: rename('path/*', 'newpath/');

    I do not see a point in having an asterisk in the destination

提交回复
热议问题