 |
|
|  |
|
 |
11년 전 |
$str = 'bubble/index.html';
echo basename($str); // index.html
echo dirname($str); // bubble
$str = '/game/bubble/index.html';
echo basename($str); // index.html
echo dirname($str); // /game/bubble
$ex = explode("/",$str)로 나누면 $ex[0]은 'bubble', $ex[1]은 'index.html'이 되겠죠
|
|
추천 : 536 |
추천
목록
|
|
|  |
|