private function pregCallback($c) { $key = '###bolt-comment-' . count($this->matchedComments) . '###'; // Add it to the array of matched comments. $this->matchedComments['/' . $key . '/'] = $c[0]; return $key; }