?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
Smarty - the compiling PHP template engine | ||
---|---|---|
Prev 來(lái)源:PHP中文社區(qū) | Chapter 5. Variable Modifiers[變量調(diào)節(jié)器] | Next |
Parameter Position參數(shù)位置 | Type類(lèi)型 | Required必需 | Default默認(rèn) | 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. 用來(lái)替換的文本字串 |
A regular expression search and replace on a variable. Use the syntax for preg_replace() from the PHP manual.
尋找和替換正則表達(dá)式 .
欲使用其語(yǔ)法,請(qǐng)參考Php手冊(cè)中的preg_replace()函數(shù).
Example 5-15. regex_replace
|
Prev 來(lái)源:PHP中文社區(qū) | Home | Next |
nl2br[替換\n為</br> | Up | replace[替換] |