li3_docs\doc\Docblock::tag()

public method

Retrieve a single tag item. Good for i.e. return tags, that can by definition only appear once.

Parameters

  • string $name

    The tag name to retrieve.

Returns

array|boolean

The tag information or false if tag does not exist.

Source

	public function tag($name) {
		if (!isset($this->_tags[$name])) {
			return false;
		}
		foreach ($this->_tags[$name] as $item) {
			return $item;
		}
	}