Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class WhatAmI
- {
- private $className;
- public function __construct($className) {
- $this->className = $className;
- }
- public function __call($name, $args)
- {
- if (is_callable(array($this->className, $name))) {
- return call_user_func_array(array($this->className, $name), $args);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment