title: It's will be right ? for use < , > operator for compare date on php?
body: <p>It's will be right ? for use <code>&lt;</code> , <code>&gt;</code> operator for compare date on php ?</p>
  
  <p>I tested it. And it's work good. But i not founded documents for advice about use <code>&lt;</code> , <code>&gt;</code> operator for compare date on php.</p>
  
  <p>Please tell me can we use <code>&lt;</code> , <code>&gt;</code> operator for compare date on php ?</p>
  
  <pre><code>&lt;?PHP
  $today = "2010-10-19";
  $expired = "2012-12-10";
  
  if($expired &gt; $today)
  {
      echo "not expired";
  }
  else
  {
      echo "expired";
  }
  ?&gt;
  </code></pre>