Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function inst_get($name) {
- $names = explode('.', $name);
- if(!isset($this->data)) {
- return null;
- }
- $var = $this->data;
- foreach($names as $n) {
- if(!isset($var[$n])) {
- return null;
- }
- $var = $var[$n];
- }
- return $var;
- }
Add Comment
Please, Sign In to add comment