protected function getLabels()
	{
		preg_match_all(
			'/\\[((?:[^\\x17[\\]]|\\[[^\\x17[\\]]*\\])*)\\]/',
			$this->text,
			$matches,
			PREG_OFFSET_CAPTURE
		);
		$labels = [];
		foreach ($matches[1] as $m)
		{
			$labels[$m[1] - 1] = strtolower($m[0]);
		}

		return $labels;
	}
protected function getLabels()
	{
		preg_match_all(
			'/\\[((?:[^\\x17[\\]]|\\[[^\\x17[\\]]*\\])*)\\]/',
			$this->text,
			$matches,
			PREG_OFFSET_CAPTURE
		);
		$labels = [];
		foreach ($matches[1] as $m)
		{
			$labels[$m[1] - 1] = strtolower($m[0]);
		}

		return $labels;
	}
protected function getLabels ( ) { preg_match_all ( '/\\[((?:[^\\x17[\\]]|\\[[^\\x17[\\]]*\\])*)\\]/' , $ this -> text , $ matches , PREG_OFFSET_CAPTURE ) ; $ labels = [ ] ; foreach ( $ matches [ 1 ] as $ m ) { $ labels [ $ m [ 1 ] - 1 ] = strtolower ( $ m [ 0 ] ) ; } return $ labels ; }
Capture and return labels used in current text

@return array Labels' text position as keys, lowercased text content as values
Capture and return labels used in current text