我想str_replace在一個函數中。試圖str_replace(array('(', ')', array('"', '\'')), array('\(', '\)', '["|\']'), 'hello("test")');期望的輸出:hello\(["|']test["|']\)這會起作用,但不是很有用:str_replace(array('"', '\''), '["|\']', str_replace(array('(', ')'), array('\(', '\)'), 'hello("test")'));我該如何解決這個問題?
- 1 回答
- 0 關注
- 128 瀏覽
添加回答
舉報
0/150
提交
取消