


many thanks, I can get what i need from here. It was the for $i count I was looking for ($date[$i] . $time[$i];) it seemed everything else was rewriting the array key.
$a = array (date1,date2,date3 ) ;
$b = array (time1,time2, time3 ) ;
for($i=0;$i<= count($a);$i++)
{
$string = $a[$i] ." ". $b[$i]."<br>";
echo $string;
}
Quote:
Originally Posted by Fredde
Do a for loop instead!
for($i=0;$i<= $numrecords;$i++)
{
$string = $date[$i] . $time[$i];
}
|