function string_stack($matches) { $key = chr(0) . count($this->strings) . chr(1); $this->strings[$key] = $matches[0]; return $key; }