Check if date is the same as previous date. If not echo out statement PHP
<p>I don't know the correct syntax to use if i wanted to check if the date is the same as the previous date in a table</p>

<p>I want to echo out a statement if it isnt the same date</p>

<p>I have this statement that gets the difference, how would i produce a statement that checked if there was a difference and echo'd out a string if it was</p>

<pre><code>  $interval = $newdate-&gt;diff(new DateTime($last_date));
</code></pre>

<p>Thanks guys, sorry i can't provide much code im struggling with syntax </p>
