Jump to content

Flattening Multidimensional Array to Unique Values


chuy08

Recommended Posts

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?

                       

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.