replace tags with PHP variables using preg_match

前端 未结 4 1652
误落风尘
误落风尘 2020-12-22 03:13

{$thisname} should be converted to .

{thisname} should be converted to

4条回答
  •  醉梦人生
    2020-12-22 03:42

    Use a templating system, I suggest using http://phpsavant.com/ although it looks like you're more interested in Smarty or Dwoo

    There's no need to re-invent the wheel :)

提交回复
热议问题