Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class methodTest{
- public function __call($nam, $argumen){
- echo "Memanggil Method Objek dari : '$nam'".implode(', ', $argumen)."\n";
- }
- public static function __callStatic($ngaran, $argumen){
- echo "Memanggil Method Statis dari : '$ngaran'".implode(', ', $argumen)."\n";
- }
- }
- $tess=new methodTest;
- $tess->runTes("Di konteks objek");
- methodTest::runTes('Di dalam konteks STATIIS');
- ?>
Add Comment
Please, Sign In to add comment