 |
|
|  |
| basename - 경로명 중에서 파일명을 리턴합니다 |
|
|
 |
15년 전 |
basename
기능 : 경로명 중에서 파일명을 리턴합니다.(Return filename component of path)
구문 : string basename(string path)
경로명을 인자로 주면 그 중에서 파일명을 리턴해줍니다.
$path = "/home/httpd/html/index.php3";
$file = basename($path); // $file 에는 이제 "index.php3"가 들어가 있습니다.
|
|
추천 : 500 |
추천
목록
|
|
|  |
|