Home >Backend Development >PHP Tutorial >The difference between list and push_PHP tutorial
//function list
.
$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 ++;
}
//Function array_push
$article = array_push($row);
}
What are these two functions:
list does not create an array and assigns values directly, while push is used to append array items.
http://www.bkjia.com/PHPjc/631389.html