SyntaxFix
Write A Post
Hire A Developer
Questions
You can use both rename() and copy().
I tend to prefer to use rename if I no longer require the source file to stay in its location.