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

Posted by Chuy08 on 02/13/07 01:15

If I have a multdimensional array like so:

$records = array(
array('product' => '30 year','rate'=> 6.0 'ProgramID' =>9514),
array('product' => '30 year','rate'=> 6.0 'ProgramID' =>9514),
array('product' => '30 year','rate'=> 6.0 'ProgramID' =>9517),
array('product' => 'Pay option','rate'=> 1.0 'ProgramID' =>9513),
array('product' => 'Pay option','rate'=> 1.0 'ProgramID' =>9513));


How could I iterate through this and removing only values that are
duplicated by ProgramID. In this example the new array should contain only
the 1st, 3rd and 4th values. Any help appreciated.

chuy



--
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

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