Hello i have a problem to load multiple arrays in foreach to show data from multipleIterator. In the arrays are the fulls data but in the iterator in foreach shows me nothing.
$date = array();
$time = array();
$message = array();
this are my arrays that are filled from mysql result and this works in this arrays all is all data.
and i made this
$iterator = new MultipleIterator();
$iterator->attachIterator(new ArrayIterator($date));
$iterator->attachIterator(new ArrayIterator($time));
$iterator->attachIterator(new ArrayIterator($message));
and my foreach is
foreach($iterator as $i)
{
echo $i[0];
echo $i[1];
echo $i[2];
}
but it shows me nothing its empty please help whats the mistake?