Quite a while ago the PHP team decided against 'friend functions'. Take a look at the public, protected and private keywords.