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