替换
对变量进行简单的搜索和替换操作。这等同于 PHP 的 str_replace()
函数。
基本用法
参数
参数位置 | 类型 | 必需 | 描述 |
---|---|---|---|
1 | 字符串 | 是 | 这是要替换的文本字符串。 |
2 | 字符串 | 是 | 这是包含替换文本的字符串。 |
示例
模版所在位置
将输出
Child's Stool Great for Use in Garden.
Child's Stool Great for Use in Vineyard.
Child's Stool Great for Use in Garden.
另请参阅 regex_replace
和 escape
。