Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • This doesn't solve the problem - the value may be echoed, but the array will still be uninitialized at the end. Commented Mar 28, 2016 at 20:21
  • @RealSkeptic it depends on what considered end. The further code just should stay in the brackets to be able to use the array. The problem was array was empty after the loop. Wtih brackets it is not anymore. Commented Mar 28, 2016 at 20:26