Here's a simple option using basename and dirname : $path = 'Home/Gallery/Images/Mountains'; $lastFolder = basename($path); ...
確定! 回上一頁