Skip to content
Advertisement

How to change a position of an multidimensional array in a multidimensional array? PHP

So I have something like this:

JavaScript

I need to put array $H (which I know the name), with all of it’s elements on the first place, so it goes like this:

JavaScript

How can I do that?

Advertisement

Answer

Hope this solution solves your purpose:

JavaScript

Demo: https://3v4l.org/AVQBH

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