basename — Returns filename component of path |
|
|
 |
14³â Àü |
string basename ( string $path [, string $suffix ] )
Example #1 basename() example
<?php
$path = "/home/httpd/html/index.php";
$file = basename($path); // $file is set to "index.php"
$file = basename($path, ".php"); // $file is set to "index"
?>
http://docs.php.net/manual/kr/function.basename.php |
|
̵̧ : 359 |
̵̧
¸ñ·Ï
|
|