Jump to content

Need help in Array


andz

Recommended Posts

hi,

 

I have 2 arrays and I want to merge them. Merging them is quite easy but can I do something like this?

============================

array 1

 

Array(

    [0] => Description 1

    [1] => Description 2

    [2] => Description 3

)

============================

 

============================

array 2

 

Array(

    [0] => url 1

    [1] => url 2

    [2] => url 3

)

============================

 

============================

Result

 

Array

(

    [0] => Description 1

    [1] => url 1

    [2] => Description 2

    [3] => URL 2

    [4] => description 3

    [5] => Url 3

)

============================

 

 

Let me know if this can be done...

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/221682-need-help-in-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.