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 : 18.225.54.199


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/getElementsById.md

---
title: getElementsById
---

```php
getElementsById ( string $id [, int $idx = null] ) : mixed
```

| Parameter | Description
| --------- | -----------
| `id`      | Element id.
| `idx`     | Index of element to return.

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