Home » Php » Advance Php Interview Question » How to sort multidimensional arrays in php.?

How to sort multidimensional arrays in php.?

how to sort multidimensional arrays in php

We have a Multidimensional array and want to short according to inner array game’s sub_id values.

We have this array

First to sorting this array we have initialize this in a variable.Then we have use array_multisort function to sort this array.

and Finally we are getting Result array in descending order using set_id

, , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">