©
This document usesPHP Chinese website manualRelease
Smarty - the compiling PHP template engine | ||
---|---|---|
Prev 来源:PHP中文社区 | Chapter 5. Variable Modifiers[变量调节器] | Next |
Parameter Position参数位置 | Type类型 | Required必需 | Default默认 | Description |
---|---|---|---|---|
1 | string | Yes | n/a | This is the regular expression to be replaced. |
2 | string | Yes | n/a | This is the string of text to replace with. 用来替换的文本字串 |
A regular expression search and replace on a variable. Use the syntax for preg_replace() from the PHP manual.
寻找和替换正则表达式 .
欲使用其语法,请参考Php手册中的preg_replace()函数.
Example 5-15. regex_replace
|
Prev 来源:PHP中文社区 | Home | Next |
nl2br[替换\n为 | Up | replace[替换] |