I want to combine three php arrays by taking one entry and placing it underneath the other, like so:
while ($i <= $no)
{
$results[$i] = $blah[$i];
$i++;
$results[$i] = $thing[$i];
$i++;
$results[$i] = $something[$i];
$i++;
}
However the problem with this is $no can be exceeded as I need to increment $i three times in each loop.
End result:
array (size=12)
1 =>
array (size=4) (from $blah)
2 =>
array (size=4) (from $thing)
3 =>
array (size=4) (from $something)
4 =>
array (size=4) (from $blah)
…this needs to continue until the size of $no is met
simple tought, can’t you do something like this???