A
A
AlpineMilk2018-04-14 20:58:58
PHP
AlpineMilk, 2018-04-14 20:58:58

How to sort a 3D array by value??

There is such an array:

$arr = array( 
 	 "Warszawa" => array(
      			 0 => array(   				
          			"ID"=> 1,
          			"post_author"=> "12",
          			"post_date"=> "2016-03-21 21:04:12"
          ),
      			 1 => array(   				
          			"ID"=> 2,
          		"post_author"=> "12",
          			"post_date"=> "2016-03-21 21:04:12"
          ),
    	)
);

how to sort it by id? from largest to smallest?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bears, 2018-04-14
@bears

Like this: sandbox.onlinephpfunctions.com/code/ef922a2e1f8f19...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question