basename — Returns filename component of path |
|
|
![](icon/private_name/1.gif) |
13³â Àü |
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 |
|
̵̧ : 345 |
̵̧
¸ñ·Ï
|
|