Rumah >pembangunan bahagian belakang >tutorial php > 用双引号赋值的字符串中,是不能包含数组变量吗?该怎么解决
用双引号赋值的字符串中,是不能包含数组变量吗???
我有个语句是这么写的:
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $str = "( $value['title'], $value['artiste'], $value['album'], $value['by'], $value['lrc'], $timeStamp, $timeStamp), ";
$str = "( {$value['title']}, {$value['artiste']}, {$value['album']}, {$value['by']}, {$value['lrc']}, $timeStamp, $timeStamp), "; <div class="clear"> </div>