InterviewSolution
| 1. |
How To Break A File Path Name Into Parts? |
|
Answer» If you have a file NAME, and want to get different parts of the file name, you can use the pathinfo() function. It breaks the file name into 3 parts: directory name, file base name and file extension; and returns them in an ARRAY. Here is a PHP script example on how to use pathinfo(): If you have a file name, and want to get different parts of the file name, you can use the pathinfo() function. It breaks the file name into 3 parts: directory name, file base name and file extension; and returns them in an array. Here is a PHP script example on how to use pathinfo(): |
|