EllisLab/CodeIgniter — pull request #1620 by asdasDan (2012-07-14 15:30:47+00:00)
Title: Adding flatten function to array helper.

Often times in manipulating arrays all the leaf elements are desired, an example is given below. Using a flattening function can do this.

Argument:
```array
0 =>
array
0 => int 4124
1 =>
array
0 => int 1224
2 =>
array
0 => int 2129
3 =>
array
0 => int 8194
4 =>
array
0 => int 3125
5 =>
array
0 => int 1121
6 =>
array
0 => int 5174
```

Result:
```array
0 => int 4124
1 => int 1224
2 => int 2129
3 => int 8194
4 => int 3125
5 => int 1121
6 => int 5174
```