|
Posted by mootmail-googlegroups on 10/13/19 11:56
Balaskas Evaggelos wrote:
> thanks for your anwser but the first thing i checked,
> before i wrote this post, was that url.
>
> The example are for multi-dimensional array of one-dimensional arrays.
>
> I can't find how i can sort a multi-dimensional array of array[m][n]
> and for a specific field example n=2.
Maybe I just am not understanding you correctly, but aren't they the
same thing?
In PHP:
$ar['m']['n'] = 1;
is equivalent to:
$ar = array('m' => array('n' => 1));
Both can be referenced as $ar['m']['n'].
Off the top of my head, the most relevant example from that php manual
page would be Example 3. Sorting database results. It sounds like you
want to essentially sort a 'table' of data by one of the columns. The
concepts of that example should point you in the right direction.
Unless, as I said, I am completely misunderstanding your question.
[Back to original message]
|