document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2.     class MethodTest {
  3.         public function __call($name, $arguments) {
  4.             // Note: Value of $name is case sensitive
  5.             echo "Calling object method \'$name\'".implode(\',\', $arguments)."\\n";
  6.         }
  7.  
  8.         // As of PHP 5.3.0
  9.         public function __callStatic($name, $arguments) {
  10.             // Note: Value of $name is case sensitive
  11.             echo "Calling static method \'$name\'".implode(\',\', $arguments)."\\n";
  12.         }
  13.     }
  14.  
  15.     $obj = new MethodTest;
  16.     $obj->runTest(\'in object context\');
  17.  
  18.     MethodTest::runTest(\'in static context\'); // As of PHP 5.3.0
  19. ?>
');