locked
Combine two arrays RRS feed

  • Question

  • User1010234884 posted

    Hello everyone, i have a little problem to manipulate some data for example, i have one array with this:

    [23,3.4,23,5.3,2.4,1.4]

    and i have another array with this:

    ["2013-01-10", "2013-02-01", "2013-03-01", "2013-04-01", "2013-05-01", "2013-06-01"]

    and i need this:

    [["2013-01-10",23],["2013-02-01",3.4],["2013-03-01",23],["2013-04-01",5.3],["2013-05-01",2.4],["2013-06-01",1.4]]

    so, how i combine the two arrays to get that

    Tuesday, February 25, 2014 11:24 AM

Answers

  • User-1925713106 posted

    Hi Ivasquez20, 

    Thanks for your post.

    It seems that you want combine two single arrays to the Two-dimensional array, right? If yes, please refer to the solution in this post.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 26, 2014 4:10 AM