You are here: Flattening Multidimensional array to unique values « PHP Programming Language « IT news, forums, messages
Flattening Multidimensional array to unique values

Posted by Chuy08 on 02/12/07 17:43

If I have a multidimensional array like the following:

Array
$records => Array
0 => [Product] 30 year, [Rate]6.0;
1 => [Product] 30 year, [Rate]6.0;
2 => [Product] Pay Option, [Rate]1.0;
3 => [Product] Pay Option, [Rate]1.0;

How could I flatten this to achieve an array that only has unique Product
values, basically removing $records['1] and $records['3'] in this example?



--
Posted via a free Usenet account from http://www.teranews.com

 

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

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