bha*_*esh 1 string replace smarty
可我知道,我怎么能取代中的所有元素"("用" ".
例:
this is (test) => this is
Run Code Online (Sandbox Code Playgroud)
你试过这个吗?
{$var|replace:'value':'new_value'}
Run Code Online (Sandbox Code Playgroud)
跟着这篇文章
还是正则表达式str_replace?
{$var|regex_replace:"/[\r\t\n]/":" "}
Run Code Online (Sandbox Code Playgroud)
在这里找到