Sunday, 15 May 2011

How to "flatten" a multi-dimensional array to simple one in PHP? -


This is probably the starting question, but I am already going through long term documentation and I have no solution I could have thought that I could use split bouts for each dimension and then put those strings back to form a new simple array with str_split . Although I never know whether the add pattern is also not in the values ​​and after doing so, str_split can break my original values.

Is there anything like alliance ($ array1, $ Array2) for inside of a multi-dimensional array?

   aflat); / * Array (11) {[0] = & gt; Int (1) [1] = & gt; Int (2) [2] = & gt; Int (3) [3] = & gt; Int (4) [4] = & gt; Int (5) [5] = & gt; Int (6) [6] = & gt; Int (7) [7] = & gt; Int (8) [8] = & gt; Int (9) [9] = & gt; Int (10) [10] = & gt; Int (11)} * /? & Gt;  

No comments:

Post a Comment