我想知道如何只减去完整路径的一部分:
我得到当前文件夹的完整路径:
$dbc_root = getcwd(); // That will return let's say "/home/USER/public_html/test2"
我只想选择“/public_html/test2”
我该怎么做?谢谢!
php string path
path ×1
php ×1
string ×1