The difference between list and push_PHP tutorial

WBOY
Release: 2016-07-13 16:58:38
Original
1083 people have browsed it

What is the difference between list and push?

//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

truehttp: //www.bkjia.com/PHPjc/631389.htmlTechArticleWhat is the difference between list and push? //Function list while(list($id,$username,$password,$add_date,$mdn,$mobile,$channel,$last_date,$area,$nickname) = mysql_fetch_array($rs)){ $article[$ i]...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!