pQuery\DomNode::getChildrenByTag PHP Метод

getChildrenByTag() публичный Метод

Finds children that match a certain tag
public getChildrenByTag ( string $tag, string $compare = 'total', boolean | integer $recursive = true ) : array
$tag string
$compare string "total"/"namespace"/"name"
$recursive boolean | integer
Результат array
    function getChildrenByTag($tag, $compare = 'total', $recursive = true)
    {
        if ($this->childCount() < 1) {
            return array();
        }
        $tag = explode(' ', strtolower($tag));
        $match = isset($tag[1]) && $tag[1] === 'not' ? 'false' : 'true';
        return $this->getChildrenByMatch(array('tags' => array($tag[0] => array('match' => $match, 'compare' => $compare))), $recursive);
    }
DomNode