DOM XML (PHP 4) 函数
在线手册:中文 英文
PHP手册

DomNode::first_child

(PHP 4 >= 4.1.0)

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().


DOM XML (PHP 4) 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: Returns first child of node

用户评论:

(20-May-2007 02:52)

in PHP5's DOM (Not DOM-XML) class use firstChild variable instead of first_child() function.