I try to put a string to $qDateTime and print it out.
I expect the result is Array ( [0] => 2013-12-16 08:38:33 [1] => 2013-12-16 08:44:58 ).
But it print Array ( [0] => 2013 [1] => 2013 ).
And the $temp can print out correctly like 2013-12-16 08:38:332013-12-16 08:44:58.
$qDateTime = array();
$query = "SELECT joinDateTime FROM queueItem WHERE uid = '".$uid."' AND isValid = true;";
$result = mysql_query($query) or die("Fail");
while($array = mysql_fetch_array($result)){
$temp = $array['joinDateTime'];
$qDateTime[] += $temp;
echo $temp;
}
print_r($qDateTime);
$qDateTime[] = $temp;$qDateTime[] = $temp, not+=.