Home >Backend Development >PHP Tutorial >The difference between list and push_PHP tutorial

The difference between list and push_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 16:58:381143browse

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]...
Statement:
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