« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for daughter (0.000 sec.)
SimpleXMLElement::children — 指定したノードの子ノードを見付ける | PHP 8.3 9414
SimpleXMLElement::children (PHP 5, PHP 7, PHP 8) SimpleXMLElement::children — 指定したノードの子ノードを見付ける 説明 public function SimpleXMLElement::children ( ? string $namespaceOrPrefix = null , bool $isPrefix = false ): ? SimpleXMLEle ... します。 例 例1 children() 疑似配列を走査する <?php $xml = new SimpleXMLElement ( '<person> <child role="son"> <child role="daughter"/> </child> <child role="daughter"> <child role="son"> <child role="son"/> </child> </child> </person>' ); foreach ( $xml ... role' ] . ' begot a ' . $fourth_gen [ 'role' ]; } } } ?> 上の例の出力は以下となります。 The person begot a son who begot a daughter; The person begot a daughter who begot a son; and that son begot a son 例2 名前空間の使用 <?php $xml = '<example xmlns:foo ...
https://man.mtool.work/php/8.3/simplexmlelement.children.html
PREV 1 NEXT