I want to ask a noob question regarding the server performance.
Assume that each class contain 1000 line codes with same performance wight .
If I want to use a function belongs to the another. I found that there are 3 ways to do that.
- Inside class
$this->Another_Class = new Another_Class
- Use static
Another_Class::Wanted_Function()
- Global
global $Another_Class
May I ask in term of server performance, are they the same?? or do I have alternative except magic call?