I hope you're doing well. I'm currently working on a PHP project and I'm facing a small issue with the `rename()` function. I was wondering if someone could help me out.
So, here's my situation. I have a directory on my server where I store user-uploaded files. I want to allow users to rename their files if they wish to. For that, I thought the `rename()` function in PHP could be useful. However, I'm not quite sure how to use it properly.
Could someone provide me with a simple example of how to use the `rename()` function in PHP? I would really appreciate it.
Thanks in advance for your help!