Reply to Re: sort multi-dimensional array

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация