PHP: DomNode->first_child - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DomNode->get_content DomNode->dump_node

Last updated: Fri, 26 Jan 2007

view this page in

# DomNode->first_child

(no version information, might be only in CVS)

DomNode->first_child -- Returns first child of node

## Описание

domelement DomNode->first_child ( void )

Returns the first child of the node.

(PHP >= 4.3 only) If no first child is found, NULL is returned.

See also domnode_last_child(), and domnode_next_sibling(), domnode_previous_sibling().

add a note User Contributed Notes
DomNode->first_child
pavol dot macura at cargo-partner dot com
19-Feb-2003 08:50
`As for PHP < 4.3.0, this function returns a DomNode in case the first child was found.
If no child node was found, this function returns FALSE.
In PHP >=4.3.0, this function returns a DomNode in case the first child was found.
If no child node was found, this function returns NULL.
Be aware of it!`
jeff dot bailey at fundserv dot com
04-Jun-2002 02:30
`This returns a DomNode, not a bool.`
add a note
DomNode->get_content DomNode->dump_node

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST