Path路徑字串移除檔案 $dirname = pathinfo('images/alphabet/abc/23345.jpg', PATHINFO_DIRNAME); Doc navigation← URL路徑../../ 的後的位置