Good day! There is a task:

  1. There is a multi-dimensional array;
  2. There is an update package passed to the variable;
  3. It is necessary to compare the value of a variable and an array (say in_array);
  4. DETERMINE (Here is the problem) what value from the array coincided with the change;
  5. Pass it (matched value to variable;

Pliz tell me a function that can solve a similar problem, because the key does not work

  • 3
    Can you write the input of what is available and what should be obtained as a result in the form of variables? And then in the form of words a little blurry turns out ............. через key не получается - what exactly does not work? What is it expressed in? Can you show what and how are you doing? - Alexey Shimansky
  • 2
    write a specific question, get a specific answer, but I can only advise you to dig in the direction of array_walk_recursive. - fens

0