I have an array of data retrieved from my database that looks like this.
["John", "Seth", "Eben"]["<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f79d989f99b793989a969e99d9909881d9909f">[email protected]</a>", "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f083958498b0949f9d91999ede979f86de9798">[email protected]</a>", "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1b7e797e755b7f74767a7275357c746d357c73">[email protected]</a>"]`["0212225252", "0201115555", "0201115556"]
Although these are separate arrays, the data in them corresponds to each other - name, email, phone number. I want to organize this data into a multidimensional array while maintaining the relationships between the arrays. For example:
["John", "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6d070205032d0902000c0403430a021b430a05">[email protected]</a>", "0212225252"]
["Seth", "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a2d1c7d6cae2c6cdcfc3cbcc8cc5cdd48cc5ca">[email protected]</a>", "0201115555"]
This pattern continues for the remaining data entries. I've attempted various methods such as push and merge, but I seem to be struggling due to my limited JavaScript skills. Additionally, I already have a solution for displaying the resulting data in an HTML table using test dummy data. Any assistance on restructuring the array is highly appreciated. Thank you.