需要把字元串中的 {$amount}, {$project} ... 替換為 {$code}
不知道用preg_replace怎麼做
* preg.php
* str.php
* test:
$ php preg.php
string(82) "您的獎勵元已到賬,請登入會員中心檢視!【xxxx】{$code}"
string(55) "您??的{$code}??已成功!【xxxx】"
需要把字元串中的 {$amount}, {$project} ... 替換為 {$code}
不知道用preg_replace怎麼做
* preg.php
* str.php
* test:
$ php preg.php
string(82) "您的獎勵元已到賬,請登入會員中心檢視!【xxxx】{$code}"
string(55) "您??的{$code}??已成功!【xxxx】"