Does php support operator overloading?
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 o
PHP doesn't support operator overloading.
There is an ancient extension which allowed to do this in a manner similar to python. You can find it here.
That being said, your best bet nowadays is to just use regular methods for comparison.