# wp-optimize/4.7.0/vendor/simplehtmldom/simplehtmldom/docs/HtmlNode/childNodes.md

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 4.7.0. 9 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/4.7.0/code/vendor/simplehtmldom/simplehtmldom/docs/HtmlNode/childNodes.md
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.7.0/raw/vendor/simplehtmldom/simplehtmldom/docs/HtmlNode/childNodes.md
- Modified: 2023-03-13T15:14:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-optimize/4.7.0/code/vendor/simplehtmldom/simplehtmldom/docs/HtmlNode/childNodes.md#L10-L20`.

````markdown
```php
childNodes ( [ int $idx = -1 ] ) : mixed
```

| Parameter | Description                                              |
|-----------|----------------------------------------------------------|
| `idx`     | Index of the node to return or `-1` to return all nodes. |

Returns all or one specific child node from the current node.
````
