View file core/libs/htmlParser/manual/docs/api/simple_html_dom_node/find_ancestor_tag.md

File size: 274B
# find_ancestor_tag

```php
find_ancestor_tag ( string $tag ) : object
```

| Parameter | Description
| --------- | -----------
| `tag`     | Tag name of the element to find.

Returns the first matching node that matches the specified tag name or null if no match was found.