I have three arrays each having different data. I want to join them as a single array where element at 0 index in each array must be at the same index in the newly created array.
For example:
arr1[0]="Trailor";
arr1[1]="Total Recall";
arr2[0]="Life of Pi";
arr2[1]="BDRIP";
arr3[0]="350MB";
arr3[1]="4.37GB"
Just I want the new array with any dimensions but the elements in above arrays should be accessible through the loops.
I want to print the elements in a table like below:
<table>
<thead>
<tr>
<td>Film Title</td>
<td>Type</td>
<td>Size</td>
</tr>
<thead>
<tr>
<td>Trailor</td>
<td>Life of Pi</td>
<td>350MB</td>
</tr>
<tr>
<td>Total Recall</td>
<td>BDRIP</td>
<td>4.37GB</td>
</tr>
<table>
You could use
Concatif you just want to join all the arrays together:If you want a new two-dimensional array, then simply create and populate it:
Edit Access them using the same square-bracket syntax
setOfArrays[setIndex][itemIndex]…