The method of modifying File name by php
This article mainly introduces "the method of php modifying the file name". In the daily operation, I believe that many people have doubts about the method of modifying the file name by php. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubts of "the method of modifying the file name by php". Next, please follow the editor to study!
1. You can use the rename function to change the name of a file, which can rename a file or directory.
2, the syntax "rename (the file name to be modified, the new file name)"; return TRUE if the modification is successful, and FALSE if the modification fails.
Example
At this point, the study of "php method for modifying file names" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!