我有:
$title1 = "aaa1";
$body1 = "bbb1";
$author1 = "ccc1";
$title2 = "aaa2";
$body2 = "bbb2";
$author2 = "ccc2";
$title3 = "aaa3";
$body3 = "bbb3";
$author3 = "ccc3";
如何将这些变量分配给数组?接下来我想做:
foreach($array as $a){
$a[title] . $a['body']. $a['author'] . "<br />";
}
这应该告诉我:
aaa1bbb1ccc1
aaa2bbb2ccc2
aaa3bbb3ccc3