亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

匹配非法文件名時,/和\不能匹配

其他非法字符都可以匹配,/和\,創建文件時提示“文件已存在,請重命名之后創建”,已經用了轉義,這是basename的影響么?

basename($path, $suffix)?

Returns trailing name component of path

參數:

path string

A path.

On Windows, both slash (/) and backslash (\) are used as directory separator character. In other environments, it is the forward slash (/).

suffix string[optional]

If the name component ends in suffix this will also be cut off.

返回:

string the base name of the given path. ?

怎么解決/和\匹配問題?

正在回答

1 回答

因為basename函數過濾掉了/和\

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

匹配非法文件名時,/和\不能匹配

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號