Answer the question
In order to leave comments, you need to log in
How to change the names of keys in an array?
Hello dear!
Today I sat down (after half a year) for an unfinished project and saw that one function was working with an error.
Help, please solve the problem.
I have an array:
Array ( [0] => Array ( [toy_id] => 222 [count] => 2 ) [1] => Array ( [toy_id] => 333 [count] => 1 ) )
Array ( [222] => 2, [333] => 1)
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