I got this array:
**Array 1 Example:**
Array
(
[0] => 62
[1] => 9
[2] => Array
(
[0] => 5
[1] => 16
[2] => 45
)
[3] => Array
(
[0] => 11
[1] => 21
[2] => 25
[3] => 32
[4] => 50
)
[4] => Array
(
[0] => 4
[1] => 23
[2] => 37
[3] => 57
)
[5] => Array
(
[0] => 13
[1] => 15
[2] => 18
[3] => 22
[4] => 27
[5] => 30
)
)
My problem is, i can't get a random value out of #Array 1 Example. So i tried to collect all the values, in a new array, so it would look like #Array 2 Example, but making that array seems almost impossible for me.
**Array 2 Example:**
Array
(
[0] => 62
[1] => 56
[2] => 16
[3] => 44
[4] => 54
[5] => 11
[6] => 21
[7] => 25
[8] => 32
[9] => 33
[10] => 4
[11] => 12
[12] => 23
[13] => 57
[14] => 13
[15] => 15
[16] => 18
[17] => 22
[18] => 27
[19] => 30
)
I tried all sort of code, but i can't get anything to work.
Any suggestions?
Thanks!
56
come from in the second array? please be more clear about what you're trying to accomplish. – Pamblam Nov 5 '14 at 19:22