Results of 1 - 2 of about 2 for begot (0.006 sec.)
- 指定したノードの子ノードを見付ける 9357
- « SimpleXMLElement::attributes SimpleXMLElement::__construct » PHP Manual SimpleXMLElement 指定したノードの子ノードを見付ける 検索 SimpleXMLElement::children (PHP 5, PHP 7, PHP 8) SimpleXMLElement::children — 指定したノードの子ノードを見付け
... n"> <child role="son"/> </child> </child> </person>' ); foreach ( $xml -> children () as $second_gen ) { echo ' The person begot a ' . $second_gen [ 'role' ]; foreach ( $second_gen -> children () as $third_gen ) { echo ' who begot a ' . $third_gen [ ' ... role' ] . ';' ; foreach ( $third_gen -> children () as $fourth_gen ) { echo ' and that ' . $third_gen [ 'role' ] . ' begot a ' . $fourth_gen [ 'role' ]; } } } ?> 上の例の出力は以下となります。 The person begot a son who begot a daughter; The per ... son begot a daughter who begot a son; and that son begot a son 例2 名前空間の使用 <?php $xml = '<example xmlns:foo="my.foo.urn"> <fo ...
-
https://man.mtool.work/php/8.3/simplexmlelement.children.html
- 指定したノードの子ノードを見付ける 9357
- « SimpleXMLElement::attributes SimpleXMLElement::__construct » PHP Manual SimpleXMLElement 指定したノードの子ノードを見付ける 検索 SimpleXMLElement::children (PHP 5, PHP 7, PHP 8) SimpleXMLElement::children — 指定したノードの子ノードを見付け
... n"> <child role="son"/> </child> </child> </person>' ); foreach ( $xml -> children () as $second_gen ) { echo ' The person begot a ' . $second_gen [ 'role' ]; foreach ( $second_gen -> children () as $third_gen ) { echo ' who begot a ' . $third_gen [ ' ... role' ] . ';' ; foreach ( $third_gen -> children () as $fourth_gen ) { echo ' and that ' . $third_gen [ 'role' ] . ' begot a ' . $fourth_gen [ 'role' ]; } } } ?> 上の例の出力は以下となります。 The person begot a son who begot a daughter; The per ... son begot a daughter who begot a son; and that son begot a son 例2 名前空間の使用 <?php $xml = '<example xmlns:foo="my.foo.urn"> <fo ...
-
https://man.mtool.work/php/8.3/simplexmlelement.children.html
PREV
1
NEXT