File "getElementsById.md"
Full Path: /var/www/html/wordpress/wp-content/plugins/wp-optimize/vendor/simplehtmldom/simplehtmldom/docs/HtmlDocument/getElementsById.md
File size: 437 bytes
MIME-type: text/plain
Charset: utf-8
```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.