Re: [PHP-DEV] The most efficicient way to pick key,value from a large array

2015-06-17 Thread Ryan Pallas
Use array_intersect_key with array_flip. $pending_pick_key1 = [uid, username]; array_intersect_key($origin_array, array_flip( $pending_pick_key1)); On Jun 17, 2015 7:25 PM, "Netroby" wrote: > Now, we have a large array, contains user profile. > [uid, username, password, email, qq, msn, skype, ad

[PHP-DEV] The most efficicient way to pick key,value from a large array

2015-06-17 Thread Netroby
Now, we have a large array, contains user profile. [uid, username, password, email, qq, msn, skype, address, zipcode, telphone, mobile...] We need to pick information from this big array, and we know the key we want to pick. What's the efficient way ? Is there any function like $pending_pick_