I want to add a new line in order to group dates within a foreach loop.
foreach
Example:
2015-11-05 2015-11-05 2015-11-07 2015-11-10 2015-11-1
$temp="": foreach($rows AS $row) { $my_date = $row['datetime_published']; echo $my_date.''; if(strcmp($my_date,$temp)==0) echo ''; $temp = $my_date; }