您可以遍历数组,然后创建一个新数组,如下所示:
$column = array();while($row = mysql_fetch_array($info)){ $column[] = $row[$key];//Edited - added semicolon at the End of line.1st and 4th(prev) line}
您可以遍历数组,然后创建一个新数组,如下所示:
$column = array();while($row = mysql_fetch_array($info)){ $column[] = $row[$key];//Edited - added semicolon at the End of line.1st and 4th(prev) line}