Dev/PHP
경로의 파일 이름 확인 함수
샤해
2012. 12. 19. 20:29
string basename ( string $path
[, string $suffix
] )
ex)
url : localhost/main/index.php
echo basename($PHP_SELF); // 'index.php'
[출처] php 파일 시스템 함수(1)|작성자 니키아