list与push的区别

  1. //函数list while(list($id,$username,$password,$add_date,$mdn,$mobile,$channel,$last_date,$area,$nickname) = mysql_fetch_array($rs)){
  2. $article[$i]['id'] = $id;
  3. $article[$i]['add_date'] = $add_date;
  4. $article[$i]['mdn'] = $mdn;
  5. $article[$i]['last_date'] = $last_date;
  6. $article[$i]['area_id'] = $area;
  7. $article[$i]['nickname'] = $nickname;
  8. $i ++;
  9. }
  10. //函数array_push
  11. while($row = mysql_fetch_array($rs)){
  12. $article = array_push($row);
  13. }

这两个函数有什么是:list不创建数组,直接赋值,而push用于追加数组项.