InterviewSolution
Saved Bookmarks
| 1. |
What is the use of friend function? |
|
Answer» In PHP, a friend FUNCTION is one non-member function having access to private and protected members WITHIN a class. A friend function has the best USE case when being shared among multiple classes, which can be DECLARED either as member functions within a class or EVEN a global function. |
|