You are here: Re: Sort an array « PHP Programming Language « IT news, forums, messages
Re: Sort an array

Posted by Erwin Moller on 10/22/09 11:40

iavian wrote:

> $a[0][0][0] = "A";
> $a[0][0][1] = "B";
> $a[0][0][2] = "C";
> $a[0][1][0] = "D";
> $a[0][1][1] = "E";
> $a[0][1][2] = "F";
> $a[1][0][0] = "A";
> $a[1][0][1] = "B";
> $a[1][0][2] = "C";
>
>
> it grows like .. i want to sort it

And what do you excatly mean by sorting?
I am not teasing, but WHAT do you expect to roll out after the sorting?

Another array?
How is that structured?

Look, if I go straight ahead with your above example I get:

$a[0][0][0] = "A";
$a[1][0][0] = "A";

as first too elements, but both originate from a different array.
What is it you expect/want as output?

So try to formulate what it is you want exectly as output.
While formulating that, the problem might just dissolve. :-)

Regards,
Erwin Moller

 

Navigation:

[Reply to this 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

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