|
Posted by Toby A Inkster on 02/13/07 16:03
Chuy08 wrote:
> $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));
for ($i=count($records)-1; $i>=0; $i--)
$tmp[$records[$i]['ProgramID']] = $records[$i]
$records = array();
foreach ($tmp as $r) $records[] = $r;
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|