Since there's nothing in the OP code snippet about getting input data, and nothing about outputting results, I have to ask: how do you know whether or not it's changing anything?
I'm also curious about the logic in the middle "while" loop. What's special about the $exposures[4] ? Given the surrounding code (even though it's incomplete) and the description of the problem, it's hard to imagine why one specific element of this array should be used in this way.
In reply to Re: Filling in missing values in an array
by graff
in thread Filling in missing values in an array
by dhuang90
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |