in reply to Re^3: Unshift and push inside of map operation.
in thread Unshift and push inside of map operation.
Whatever you meant doesn't apply to both foreach and map.
foreach doesn't work well with changing arrays.
map works well with changing arrays.
foreach can do what the OP wants, but not well.
map doesn't do what the OP wants at all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Unshift and push inside of map operation.
by dave_the_m (Monsignor) on Sep 23, 2008 at 12:39 UTC |