basename - °æ·Î¸í Áß¿¡¼ ÆÄÀϸíÀ» ¸®ÅÏÇÕ´Ï´Ù |
|
|
![](icon/private_name/1.gif) |
13³â Àü |
basename
±â´É : °æ·Î¸í Áß¿¡¼ ÆÄÀϸíÀ» ¸®ÅÏÇÕ´Ï´Ù.(Return filename component of path)
±¸¹® : string basename(string path)
°æ·Î¸íÀ» ÀÎÀÚ·Î ÁÖ¸é ±× Áß¿¡¼ ÆÄÀϸíÀ» ¸®ÅÏÇØÁÝ´Ï´Ù.
$path = "/home/httpd/html/index.php3";
$file = basename($path); // $file ¿¡´Â ÀÌÁ¦ "index.php3"°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.
|
|
̵̧ : 385 |
̵̧
¸ñ·Ï
|
|