Does php support operator overloading?
<p>Does php support operator overloading?</p>

<p>I'm trying to create a class that takes in a date and I'd like to compare it with another object without having to use methods or properties.</p>

<p>This is what I'm trying to do:</p>

<pre><code>$obj1 = new myClass('2016-08-15');
$obj2 = new myClass('2016-02-06');

if ($obj1 &gt; $obj2){
    ...
}
</code></pre>

<p>I know how to do the date comparison, all I need to know is how to overload the operators >, &lt; and ==.</p>

<p>Thanks.</p>