Results of 1 - 10 of about 258 for child (0.002 sec.)
- 基底ノード型を作成する際に使用する拡張クラスを登録する 8498
- « DOMDocument::prepend DOMDocument::relaxNGValidate » PHP Manual DOMDocument 基底ノード型を作成する際に使用する拡張クラスを登録する 検索 DOMDocument::registerNodeClass (PHP 5 >= 5.2.0, PHP 7, PHP 8) DOMDocument::registerNodeClass — 基底ノー
... 、コードを書きやすくする <?php class myElement extends DOMElement { function appendElement ( $name ) { return $this -> appendChild (new myElement ( $name )); } } class myDocument extends DOMDocument { function setRoot ( $name ) { return $this -> appendC ... ' ); // これ以降、他の要素への要素の追加が一回のメソッドコールでできるようになります! $root = $doc -> setRoot ( 'root' ); $child = $root -> appendElement ( 'child' ); $child -> setAttribute ( 'foo' , 'bar' ); echo $doc -> saveXML (); ?> 上の例の出力は ... 以下となります。 <?xml version="1.0"?> <root><child foo="bar"/></root> 例2 カスタムクラス形式での要素の取得 <?php class myElement extends DOMElement { public function __toStr ...
-
https://man.mtool.work/php/8.3/domdocument.registernodeclass.html
- 基底ノード型を作成する際に使用する拡張クラスを登録する 8498
- « DOMDocument::prepend DOMDocument::relaxNGValidate » PHP Manual DOMDocument 基底ノード型を作成する際に使用する拡張クラスを登録する 検索 DOMDocument::registerNodeClass (PHP 5 >= 5.2.0, PHP 7, PHP 8) DOMDocument::registerNodeClass — 基底ノー
... 、コードを書きやすくする <?php class myElement extends DOMElement { function appendElement ( $name ) { return $this -> appendChild (new myElement ( $name )); } } class myDocument extends DOMDocument { function setRoot ( $name ) { return $this -> appendC ... ' ); // これ以降、他の要素への要素の追加が一回のメソッドコールでできるようになります! $root = $doc -> setRoot ( 'root' ); $child = $root -> appendElement ( 'child' ); $child -> setAttribute ( 'foo' , 'bar' ); echo $doc -> saveXML (); ?> 上の例の出力は ... 以下となります。 <?xml version="1.0"?> <root><child foo="bar"/></root> 例2 カスタムクラス形式での要素の取得 <?php class myElement extends DOMElement { public function __toStr ...
-
https://man.mtool.work/php/8.3/domdocument.registernodeclass.html
- Returns the number of child documents 8121
- « SolrInputDocument::getChildDocuments SolrInputDocument::getField » PHP Manual SolrInputDocument Returns the number of child documents 検索 SolrInputDocument::getChildDocumentsCount (PECL solr >= 2.3.0) SolrInputDocument::getChildDocuments
... Count — Returns the number of child documents 説明 public function SolrInputDocument::getChildDocumentsCount (): int Returns the number of child documents パラ ... メータ この関数にはパラメータはありません。 戻り値 参考 SolrInputDocument::addChildDocument() - Adds a child document for block indexing SolrInputDocument::addChildDocuments() - Adds an array of child docum ... ents SolrInputDocument::hasChildDocuments() - Returns true if the document has any child documents SolrInputDocument::getChildDocuments() - Returns an arra ...
-
https://man.mtool.work/php/8.3/solrinputdocument.getchilddocumentscount.html
- Returns an array of child documents (SolrInputDocument) 8081
- « SolrInputDocument::getBoost SolrInputDocument::getChildDocumentsCount » PHP Manual SolrInputDocument Returns an array of child documents (SolrInputDocument) 検索 SolrInputDocument::getChildDocuments (PECL solr >= 2.3.0) SolrInputDocument:
... :getChildDocuments — Returns an array of child documents (SolrInputDocument) 説明 public function SolrInputDocument::getChildDocumen ... ts (): array Returns an array of child documents (SolrInputDocument) パラメータ この関数にはパラメータはありません。 戻り値 参考 SolrInputDocument::addChildDocum ... ent() - Adds a child document for block indexing SolrInputDocument::addChildDocuments() - Adds an array of child documents SolrInputDocument::h ...
-
https://man.mtool.work/php/8.3/solrinputdocument.getchilddocuments.html
- Returns the number of child documents 8041
- « SolrInputDocument::getChildDocuments SolrInputDocument::getField » PHP Manual SolrInputDocument Returns the number of child documents 検索 SolrInputDocument::getChildDocumentsCount (PECL solr >= 2.3.0) SolrInputDocument::getChildDocuments
... Count — Returns the number of child documents 説明 public function SolrInputDocument::getChildDocumentsCount (): int Returns the number of child documents パラ ... メータ この関数にはパラメータはありません。 戻り値 参考 SolrInputDocument::addChildDocument() - Adds a child document for block indexing SolrInputDocument::addChildDocuments() - Adds an array of child docum ... ents SolrInputDocument::hasChildDocuments() - Returns true if the document has any child documents SolrInputDocument::getChildDocuments() - Returns an arra ...
-
https://man.mtool.work/php/8.3/solrinputdocument.getchilddocumentscount.html
- Returns true if the document has any child documents 8041
- « SolrInputDocument::getFieldNames SolrInputDocument::merge » PHP Manual SolrInputDocument Returns true if the document has any child documents 検索 SolrInputDocument::hasChildDocuments (PECL solr >= 2.3.0) SolrInputDocument::hasChildDocume
... nts — Returns true if the document has any child documents 説明 public function SolrInputDocument::hasChildDocuments (): bool Checks whether the document has any child doc ... uments パラメータ この関数にはパラメータはありません。 戻り値 参考 SolrInputDocument::addChildDocument() - Adds a child document for block indexing SolrInputDocument::addChildDocuments() - Adds an array of child docum ... ents SolrInputDocument::getChildDocuments() - Returns an array of child documents (SolrInputDocument) SolrInputDocument::getChildDocumentsCount() - Returns ...
-
https://man.mtool.work/php/8.3/solrinputdocument.haschilddocuments.html
- Returns an array of child documents (SolrInputDocument) 8001
- « SolrInputDocument::getBoost SolrInputDocument::getChildDocumentsCount » PHP Manual SolrInputDocument Returns an array of child documents (SolrInputDocument) 検索 SolrInputDocument::getChildDocuments (PECL solr >= 2.3.0) SolrInputDocument:
... :getChildDocuments — Returns an array of child documents (SolrInputDocument) 説明 public function SolrInputDocument::getChildDocumen ... ts (): array Returns an array of child documents (SolrInputDocument) パラメータ この関数にはパラメータはありません。 戻り値 参考 SolrInputDocument::addChildDocum ... ent() - Adds a child document for block indexing SolrInputDocument::addChildDocuments() - Adds an array of child documents SolrInputDocument::h ...
-
https://man.mtool.work/php/8.3/solrinputdocument.getchilddocuments.html
- Returns true if the document has any child documents 8001
- « SolrInputDocument::getFieldNames SolrInputDocument::merge » PHP Manual SolrInputDocument Returns true if the document has any child documents 検索 SolrInputDocument::hasChildDocuments (PECL solr >= 2.3.0) SolrInputDocument::hasChildDocume
... nts — Returns true if the document has any child documents 説明 public function SolrInputDocument::hasChildDocuments (): bool Checks whether the document has any child doc ... uments パラメータ この関数にはパラメータはありません。 戻り値 参考 SolrInputDocument::addChildDocument() - Adds a child document for block indexing SolrInputDocument::addChildDocuments() - Adds an array of child docum ... ents SolrInputDocument::getChildDocuments() - Returns an array of child documents (SolrInputDocument) SolrInputDocument::getChildDocumentsCount() - Returns ...
-
https://man.mtool.work/php/8.3/solrinputdocument.haschilddocuments.html
- 子要素を数える 7813
- « SimpleXMLElement::__construct SimpleXMLElement::current » PHP Manual SimpleXMLElement 子要素を数える 検索 SimpleXMLElement::count (PHP 8) SimpleXMLElement::count — 子要素を数える 説明 public function SimpleXMLElement::count (): int このメ
... はありません。 戻り値 子要素の数を返します。 例 例1 子要素の数の取得 <?php $xml = <<<EOF <people> <person name="Person 1"> <child/> <child/> <child/> </person> <person name="Person 2"> <child/> <child/> <child/> <child/> <child/> </person> </people> EO ... F; $elem = new SimpleXMLElement ( $xml ); foreach ( $elem as $person ) { printf ( "%s has got %d children.\n" , $person [ 'name' ], $person -> count ()); } ?> 上の例の出力は以下となります。 Person 1 has got 3 children. Person ... 2 has got 5 children. 参考 SimpleXMLElement::children() - 指定したノードの子ノードを見付ける 関連キーワード: SimpleXMLElement child person c ...
-
https://man.mtool.work/php/8.3/simplexmlelement.count.html
- 子要素を数える 7733
- « SimpleXMLElement::__construct SimpleXMLElement::current » PHP Manual SimpleXMLElement 子要素を数える 検索 SimpleXMLElement::count (PHP 8) SimpleXMLElement::count — 子要素を数える 説明 public function SimpleXMLElement::count (): int このメ
... はありません。 戻り値 子要素の数を返します。 例 例1 子要素の数の取得 <?php $xml = <<<EOF <people> <person name="Person 1"> <child/> <child/> <child/> </person> <person name="Person 2"> <child/> <child/> <child/> <child/> <child/> </person> </people> EO ... F; $elem = new SimpleXMLElement ( $xml ); foreach ( $elem as $person ) { printf ( "%s has got %d children.\n" , $person [ 'name' ], $person -> count ()); } ?> 上の例の出力は以下となります。 Person 1 has got 3 children. Person ... 2 has got 5 children. 参考 SimpleXMLElement::children() - 指定したノードの子ノードを見付ける 関連キーワード: SimpleXMLElement child person 要 ...
-
https://man.mtool.work/php/8.3/simplexmlelement.count.html