list与push的区别
- //函数list while(list($id,$username,$password,$add_date,$mdn,$mobile,$channel,$last_date,$area,$nickname) = mysql_fetch_array($rs)){
- $article[$i]['id'] = $id;
- $article[$i]['add_date'] = $add_date;
- $article[$i]['mdn'] = $mdn;
- $article[$i]['last_date'] = $last_date;
- $article[$i]['area_id'] = $area;
- $article[$i]['nickname'] = $nickname;
- $i ++;
- }
- //函数array_push
- while($row = mysql_fetch_array($rs)){
- $article = array_push($row);
- }
这两个函数有什么是:list不创建数组,直接赋值,而push用于追加数组项.