---
title: getElementByTagName
---

```php
getElementByTagName ( string $name ) : object
```

Searches an element by tag name.

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

Returns the element or null if no match was found.