-1
節省我保存這個字符串刪除+ 在Php
$string= ~`[email protected]#$%^&*()_-=+\][‘;/.,<>?:」{}|
爲htmlentities(urlencode(addslashes(trim($string))));
但它移除+\
並返回我的字符串作爲[email protected]#$%^&*()_-= ][‘;/.,<>?:」{}|
時。
任何人都可以幫助我嗎?
我在第一個字符串上找不到任何+ \。 –
這些字符都不存在於原始字符串中。你爲什麼使用'addslashes'結合'urlencode'和'htmlentities'? – Quentin
@ Md.SahadatHossain我放置+ \但stackoverflow刪除它。所以我再次編輯它 –