Home  >  Article  >  Backend Development  >  PHP,变量里带有变量

PHP,变量里带有变量

WBOY
WBOYOriginal
2016-06-13 12:37:15922browse

PHP,变量里含有变量!
$mcontent 的内容是“ dear:{$user['username']}   你购买的商品:{$goods_name},订单号{$goods_no}已下单成功,由于此商品近期销售火爆,请及时付款!  ”


其中里面的也是变量,可以我 echo $mcontent;  输不出里的变量,请问大神要怎么做!!!

php 变量
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn