Easy Tutorial
❮ Php Imagecolormatch Php Looping For ❯

PHP children() Function

PHP SimpleXML Reference Manual

Example

Find the child nodes of the note node:


Definition and Usage

The children() function finds the child nodes of a specified node.


Syntax

Parameter Description
ns Optional. Specifies an XML namespace.
is_prefix Optional. Specifies a boolean value. If TRUE, ns is a prefix. If FALSE, ns is a namespace URL.

Technical Details

Return Value: Returns a SimpleXMLElement object.
PHP Version: 5.0.1+
--- ---
PHP Changelog: Added the is_prefix parameter.
--- ---

More Examples

Example 1

Find the child nodes of the body node:


❮ Php Imagecolormatch Php Looping For ❯