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

Posted by craig.keightley on 01/29/07 12:35

i have the following array:

Array
(
[0] => Array
(
[0] => Leamore Windows Ltd
[1] => 553398833511417
[2] => 20
)

[1] => Array
(
[0] => HRPC
[1] => 920589205210538
[2] => 1
)

[2] => Array
(
[0] => Leamore Windows Ltd
[1] => 553398833511417
[2] => 2
)

)


is it possible to group the items in the array and order by name to
output the following:

Array
(
[0] => Array
(
[0] => HRPC
[1] => 920589205210538

[2] => 1
)

[1] => Array
(
[0] => Leamore Windows Ltd

[1] => 553398833511417
[2] => 22
)


)

 

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

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