Skip to main content
edited tags
Link
mickmackusa
  • 49.2k
  • 13
  • 98
  • 165
Post Closed as "Duplicate" by mickmackusa arrays
added 8 characters in body
Source Link
Billal BEGUERADJ
  • 23k
  • 45
  • 125
  • 142

Array ( [0] => rubix )

Array ( [0] => limo )

Array ( [0] => icecream )

Array ( [0] => rubix ) 
Array ( [0] => limo )
Array ( [0] => icecream )

I need to convert this array into following type. How can I do that? For example like this..:

Array ( [0] => rubix [1] => schoolbag [3] => limo [4] => frezzer [5] => paper )

 Array ( [0] => rubix [1] => schoolbag [3] => limo [4] => frezzer [5] => paper )

Array ( [0] => rubix )

Array ( [0] => limo )

Array ( [0] => icecream )

I need to convert this array into following type. How can I do that? For example like this..

Array ( [0] => rubix [1] => schoolbag [3] => limo [4] => frezzer [5] => paper )

Array ( [0] => rubix ) 
Array ( [0] => limo )
Array ( [0] => icecream )

I need to convert this array into following type. How can I do that? For example like this:

 Array ( [0] => rubix [1] => schoolbag [3] => limo [4] => frezzer [5] => paper )
Source Link

I have the following array, coming from a form

Array ( [0] => rubix )

Array ( [0] => limo )

Array ( [0] => icecream )

I need to convert this array into following type. How can I do that? For example like this..

Array ( [0] => rubix [1] => schoolbag [3] => limo [4] => frezzer [5] => paper )