public function get($name, $default = NULL) { if (stristr($name, '/')) { $one = str_bis($name, '/'); $two = str_nach($name, '/'); return $this->get($one)->get($two); } else { if (isset($this->values[$name])) { if ($this->types[$name] == 'array') { return new varArray($this->values[$name]); } return $this->values[$name]; } else { if ($default === NULL) { return new varArray(array()); } else { return $default; } } } }
function str_zwischen($haystack, $needle1, $needle2) { $s = str_nach($haystack, $needle1); $s = str_bis($s, $needle2); return $s; }