-- for some reason it's omitting the 135 value...or anything that comes after 130.
gr8gonzo
Sorry, I was missing a line. After the foreach loop through $array, you might still have some data at the end that needs to be added to the $rate_log array, so just check and add it after the loop ends:
Here's my code -
Open in new window
which outputs:
2 day at $125
3 day at $130
-- for some reason it's omitting the 135 value...or anything that comes after 130.