Skip to content
Advertisement

Turning a multidimensional PHP Array into two different arrays [closed]

What I have is:

JavaScript

What I would like to end up with is two arrays:

JavaScript

I’ve been playing around with this for a couple of hours. Any ideas?

Advertisement

Answer

As long as there is only one genre per choice the following works

JavaScript

Otherwise you need to iterate the genres aswell

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement