Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Is it possible to achieve both of following with the same object?
- //Calling a static function if instance isn't created
- MyObj::MethodOne('String');
- //If we create instance first, we should be able to call the same method on that instace
- $myInstance = new MyObj('String');
- $myInstance->MethodOne();
Add Comment
Please, Sign In to add comment