Q:

Php - how to store tuples of 3 elements in an array?

I need to store three string values at each iteration of a loop, e.g.
$myArray = array();
foreach (..) {
  $myArray[] = // I need to store as a single row or tuple three strings
}
foreach ($myArray as $arrayTuple)
  // Do something with $arrayTuple.firstString, $arrayTuple.secondString and $arrayTuple.thirdString

I can't seem to understand how to do this with an associative array.

A:

If I understand correctly then you want like this
$myArray = array();
foreach (..) {
  $myArray[] = array("one","two","three");
}

