hi,
can anyone give me a nice short document to read to understand operator overloading concept in OOP(object oriented programming)
with one or two example...
operator overloading
Moderator: General Moderators
Re: operator overloading
PHP doesn't have operator overloading.
Re: operator overloading
there's SPL which provides some overloading for arrays - http://www.php.net/~helly/php/ext/spl/
And also the PECL extension Operator which provides more overloading capabilities but it's highly experimental - http://pecl.php.net/package/operator
And also the PECL extension Operator which provides more overloading capabilities but it's highly experimental - http://pecl.php.net/package/operator
Re: operator overloading
Read "The C++ progragramming language" by Bjarne Stroustrup and you'll get much better understanding of the OO concepts.
Re: operator overloading
Pretty interesting, I'll give it a try. Thank you.pytrin wrote: And also the PECL extension Operator which provides more overloading capabilities but it's highly experimental - http://pecl.php.net/package/operator