我想将所有开头的字符串更改{" and ending with "}为变量,例如:
Hello {username}, -> to Hello $array['username']
Your Country is {country}, -> Your Country is $array['country']
但是我使用一个变量(Mysql)从数据库中获取所有字符串文本 $array['content']
我想要的是:
str_replace("{$whatinhere}",$array['$copytohere'],$array['content']);
str_replace("{company}",$array['company'],$array['content']);
牛魔王的故事
BIG阳
凤凰求蛊