Ben gibi tek boyutlu doçent dizi döndüren gereken bir işlevi var $user_info[$index]=value burada $index oluşan bir dizedir
- User_id
- FULL_NAME
- photo_file_name
for example, my associative array could look like $user_info['user-123456789~~Bill Gates~~bill_gates.png']=$value. I need User_id, FULL_NAME and photo for another needs, in order to know whose value is this and what is his full name, etc.
So, the questions that has risen are following:
- Bu uygulamanın hesap performansı almak için eğer böyle bir dizi için Tamam mı?
- (Ben bunun kötü bir fikir olduğunu düşünüyorum) kötü yani nasıl ben bu durumda benim sorunu çözebilir.
Additional info. This function retrieves user information into this associative array and returns this array. Further, my application stores it in a session in order to address it and retrieve information right from the session variable, not execute once again a query. And finally the reason I need one dimensional array is that I use a function array_diff where one of the arrays are $user_info array.
Note, Take into account that one user could have 1 or many values.
Herhangi bir öneriniz mutluluk duyarız.