I want to search a key in a multidimensional array with two values in the condition.
I know how to search a multi-dimensional array with a single search condition:
$key = array_search($journee, array_column($data,'journee'));
but not more than that. Here is my array setup:
Array
(
[0] => Array
(
[pseudo] => titi
[journee] => 11
[pts] => 3
)
...
[10] => Array
(
[pseudo] => test
[journee] => 10
[pts] => 6
)
[11] => Array
(
[pseudo] => test
[journee] => 11
[pts] => 4
)
)
If I only put 11 in array_search and for array_column the key journee, it will return 0.
I want to add pseudo in the search condition too (the keys journee and pseudo should be searched for a specific values).
How would I accomplish this?
journeeandpseudo?