title: PHP Checking if outputted date is less than current date
body: <p>I have the following function which works well but would like to check the returned date and compare with the current date if before current date to show something if current or in future show as normal.</p>
  
  <p>Function:</p>
  
  <pre><code>function dateFormat( $old, $correction ) {
      $old_date_timestamp = strtotime( $old );
      $new_date = date( 'jS F Y', $old_date_timestamp + $correction );
      return $new_date;
  }
  </code></pre>
  
  <p>Call:</p>
  
  <pre><code>echo '&lt;li class="list-group-item"&gt;Support Expires: ' . dateFormat($purchase_data['verify-purchase']['supported_until'], 11*60*60 . '&lt;/li&gt;');
  </code></pre>
  
  <p>Output: </p>
  
  <blockquote>
    <p>2nd March 2016</p>
  </blockquote>
  
  <p>So as not today's date and/or before today's date would like to echo a message, else just show the date.</p>