查看文档:
Note:
basename() is locale aware, so for it to see the correct basename with multibyte character paths, the matching locale must be set using the setlocale() function.
basename()函数依赖于区域,我们只需设置区域:
setlocale(LC_ALL, 'zh_CN.UTF8');
Everything is possible.
查看文档:
Note:
basename() is locale aware, so for it to see the correct basename with multibyte character paths, the matching locale must be set using the setlocale() function.
basename()函数依赖于区域,我们只需设置区域:
setlocale(LC_ALL, 'zh_CN.UTF8');