[英]PHP str_replace with array() not working ? (have example)
[碼]
echo str_replace(array('(', ')'), '', "(test) i'm test"); exit;
[跑]
(test) i'm test
我想從此文本中刪除方括號,但不起作用?
//注意:代碼將從以下字符串中刪除方括號:
$string= "(test) i'm test";
echo str_replace(array( '(', ')' ), '', $string);
//輸出:-測試我正在測試
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.