Overloading in PHP 5.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhighat4214
    New Member
    • Jul 2008
    • 13

    Overloading in PHP 5.0

    Hello All ,

    I'm a little bit confused about function and constructor overloading in PHP 5.0
    I know PHP does not support operator overloading. However if I have to realize the advantages of function overloading, I also understand __call() plays a role. However A question still pings up in my mind , Is Overloading supported in PHP 5.0 ? Also in a sense operator overloading is also supported , + supplies a different meaning when applied to arrays!

    Can anyone clear my doubts ? I will highly appreciate.
    Thank you all for reading this thread and replying.

    Best Regards,
    Abhijit
    Last edited by Markus; Mar 14 '09, 06:11 PM. Reason: Removed a few hundred exclamation marks.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Operator overloading in PHP 5 is limited, to say the least. There are some possible ways to implement it.

    There's a good article here that explains the possibilities of object overloading in PHP5.

    Comment

    • abhighat4214
      New Member
      • Jul 2008
      • 13

      #3
      Article on PHP Overloading

      Thanks a ton. It cleared most of my doubts. Really nice article.

      Regards,
      Abhijit

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by abhighat4214
        Thanks a ton. It cleared most of my doubts. Really nice article.

        Regards,
        Abhijit
        You're welcome,

        - Markus.

        Comment

        Working...