replace tags with PHP variables using preg_match

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

{$thisname} should be converted to .

{thisname} should be converted to

4条回答
  •  清酒与你
    2020-12-22 03:59

    preg_replace and regular expressions are more flexible than str_replace, especially if you have to parse a string like this.movie to $this["movie"]. It will not be an easy task though.

提交回复
热议问题