|
Posted by Iván Sánchez Ortega on 02/13/07 01:17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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));
>
>
> How could I iterate through this and removing only values that are
> duplicated by ProgramID.
Use a user-defined array sorting function, so the array gets sorted by
ProgramID. See php.net/usort .
- --
- ----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
No hay cosa más satisfactoria que el que alguien te dispare, y falle.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFF0RG+R56dWuhgxGgRAthkAKCfMp+w261hlzKjCDLG+en7fTAjqACeM4wa
0rnAPE1m2hwGslxn7OAVoS8=
=EtId
-----END PGP SIGNATURE-----
Navigation:
[Reply to this message]
|