(PHP 4, PHP 5, PHP 7)
Renames a file or directory
bool rename ( string $oldname, string $newname [, resource $context ] )
Attempts to rename oldname to newname, moving it between directories if necessary. If newname exists, it will be overwritten.
Parameters:
oldname
Note:
The old name. The wrapper used in oldname must match the wrapper used in newname.