Answer the question
In order to leave comments, you need to log in
How to find the maximum value in one array related to another by id?
Good evening, dear connoisseurs!
Please tell me how to solve this problem.
I have two arrays. One array is the user id values => points count and the other array is the user id => user category.
Array
(
// id => score
[5] => 14
[1] => 10
[3] => 6
[8] => 3
[7] => 1
[4] => 0
)
Array
(
// id => category
[5] => 21
[1] => 4
[3] => 6
[8] => 23
[7] => 23
[4] => 5
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question