: This article describes how to use the array_merge function. if you are interested in the PHP Tutorial, refer to it.
$ Condition ['is _ own '] = 0; $ condition ['is _ pass'] = 0; $ notDeal_user_list = array (); foreach ($ tempas $ k =>$ v) {$ condition ['Route _ id'] = $ v ['Route _ id']; $ temp_array = $ route_person_model-> where ($ condition)-> field ('User _ id, route_id, ID')-> select (); if (! Empty ($ temp_array) {$ notDeal_user_list = array_merge ($ notDeal_user_list, $ temp_array );} // when one of the array_merge functions is null, the final result is null // concatenate user information of different itineraries} // var_dump ($ notDeal_user_list); die (); foreach ($ notDeal_user_listas $ k => $ v) {$ notDeal_user_list [$ k] ['Route _ info'] = getRouteInfo ($ v ['Route _ id']); $ notDeal_user_list [$ k] ['User _ info'] = getUserInfo ($ v ['User _ id']);} $ this-> notDeal_user_list = $ notDeal_user_list;
Before the array is null, the array is null. after the array is added, the array is OK.
This concatenation function will be empty when one of them is empty. you need to judge the concatenation!
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above introduces the use of the array_merge function, including some content, and hope to be helpful to friends who are interested in the PHP Tutorial.