$categoryArray=array();
$dataseries1=array();
$dataseries2=array();
// pushing category array values
while($row = mysqli_fetch_array($result)) {
$lundra1 = $row['lundra'];
$ghargoda1 = $row['ghargoda'];
$shankargadh1 = $row['shankargarh'];
$pratappur1 = $row['pratappur'];
$charma1 = $row['charama'];
$bharatpur1 = $row['bharatpur'];
$carmdaksh1 = $row['carmdaksh'];
$pali1 = $row['pali'];
$magarload1 = $row['magarload'];
$bodla1 = $row['bodla'];
$chhindgarh1 = $row['chhindgarh'];
$dantewada1 = $row['dantewada'];
$bakawand1 = $row['bakawand'];
$narharpur1 = $row['narharpur'];
$total1 = $row['total'];
array_push($categoryArray, array(
"label" => "Lundra",
"label" => "Ghargoda",
"label" => "Shankargarh",
"label" => "Pratappur",
"label" => "Charama"
)
);
这给出的输出为
Array ( [0] => Array ( [label] => Charama ) )
我想做的是这样的
Array ( [0] => Array ( [label] => Jan ) [1] => Array ( [label] => Feb ) [2] => Array ( [label] => Mar ) [3] => Array ( [label] => Apr ) [4] => Array ( [label] => May ) [5] => Array ( [label] => Jun ))
我是使用数组的新手,所以面临如何带来这个结果的问题
料青山看我应如是
翻翻过去那场雪