what is the use of friend function ?

Discussion in 'PHP' started by tomsign, Jul 24, 2010.

  1. #1
    Hi,


    what is the use of friend function ?


    thanks :)
     
    tomsign, Jul 24, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Quite a while ago the PHP team decided against 'friend functions'. Take a look at the public, protected and private keywords.
     
    Deacalion, Jul 24, 2010 IP