« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 124 for Child (0.001 sec.)
DOMDocument::registerNodeClass — 基底ノード型を作成する際に使用する拡張クラスを... 11905
DOMDocument::registerNodeClass (PHP 5 >= 5.2.0, PHP 7, PHP 8) DOMDocument::registerNodeClass — 基底ノード型を作成する際に使用する拡張クラスを登録する 説明 public function DOMDocument::registerNodeClass ( string $baseClass , ? string $extend ... 、コードを書きやすくする <?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
SimpleXMLElement::count — 子要素を数える | PHP 8.3 10169
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() - 指定したノードの子ノードを見付ける 他のマニュアルの関連ページ Linux JM set_tid_add ...
https://man.mtool.work/php/8.3/simplexmlelement.count.html
SolrInputDocument::getChildDocumentsCount — Returns the number of child documen... 9714
SolrInputDocument::getChildDocumentsCount (PECL solr >= 2.3.0) SolrInputDocument::getChildDocumentsCount — Returns the number of child documents 説明 public function SolrInputDocument::getChildDocumentsCount (): int Returns the number of child ... ild 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 ... y of child documents (SolrInputDocument) 他のマニュアルの関連ページ Linux JM set_tid_address(2) Linux JM fork(2) DuckDB Full Linux JM ...
https://man.mtool.work/php/8.3/solrinputdocument.getchilddocumentscount.html
SolrInputDocument::getChildDocuments — Returns an array of child documents (Sol... 9652
SolrInputDocument::getChildDocuments (PECL solr >= 2.3.0) SolrInputDocument::getChildDocuments — Returns an array of child documents (SolrInputDocument) 説明 public function SolrInputDocument::getChildDocuments (): 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 ... asChildDocuments() - Returns true if the document has any child documents SolrInputDocument::getChildDocumentsCount() - Returns th ...
https://man.mtool.work/php/8.3/solrinputdocument.getchilddocuments.html
SolrInputDocument::hasChildDocuments — Returns true if the document has any chi... 9652
SolrInputDocument::hasChildDocuments (PECL solr >= 2.3.0) SolrInputDocument::hasChildDocuments — Returns true if the document has any child documents 説明 public function SolrInputDocument::hasChildDocuments (): bool Checks whether the docu ... ment has any child documents パラメータ この関数にはパラメータはありません。 戻り値 参考 SolrInputDocument::addChildDocument() - Adds a child ... document for block indexing SolrInputDocument::addChildDocuments() - Adds an array of child documents SolrInputDocument::getChildDocuments() - Returns an array of child documents ... (SolrInputDocument) SolrInputDocument::getChildDocumentsCount() - Returns the number of child documents 他のマニュアルの関連ページ Linux JM set_tid_address(2) DuckDB Full ...
https://man.mtool.work/php/8.3/solrinputdocument.haschilddocuments.html
SolrInputDocument::addChildDocument — Adds a child document for block indexing ... 9369
SolrInputDocument::addChildDocument (PECL solr >= 2.3.0) SolrInputDocument::addChildDocument — Adds a child document for block indexing 説明 public function SolrInputDocument::addChildDocument ( SolrInputDocument $child ): void Adds a child ... document to construct a document block with nested documents. パラメータ child A SolrInputDocument object. 戻り値 値を返しません。 エラー / 例外 Throws SolrIllegalArgumentException on failure. Throws S ... olrException on internal failure. 例 例1 SolrInputDocument::addChildDocument() example <?php include "bootstrap.php" ; $options = array ( 'hostname' => SOLR_SERVER_HOSTNAME , 'login' => SOLR_ ... addField ( 'content_type' , 'sku' ); $large -> addField ( 'size' , 'L' ); $large -> addField ( 'inventory' , 300 ); // add child documents $product -> addChildDocument ( $small ); $product -> addChildDocument ( $medium ); $product -> addChildDocument ...
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocument.html
Random\Engine\Xoshiro256StarStar::jumpLong — エンジンの内部状態を、効率的に 2^1... 8433
Random\Engine\Xoshiro256StarStar::jumpLong (PHP 8 >= 8.2.0) Random\Engine\Xoshiro256StarStar::jumpLong — エンジンの内部状態を、効率的に 2^192 ステップ進める 説明 public function Random\Engine\Xoshiro256StarStar::jumpLong (): void Random\Eng ... (); // 子となるエンジンは、親のエンジンが持つ値 2**192 のチャンク // から取得した、値 2**128 のチャンクをそれぞれ持ちます $child1a = clone $parent1 ; $parent1 -> jump (); $child1b = clone $parent1 ; $parent1 -> jump (); $child2a = clone $parent2 ; $pa ... rent2 -> jump (); $child2b = clone $parent2 ; $parent2 -> jump (); echo "Child 1A: " , bin2hex ( $child1a -> generate ()), "\n" ; echo "Child 1B: " ... , bin2hex ( $child1b -> generate ()), "\n" ; echo "Child 2A: " , bin2hex ( $child2a -> generate ()), "\n" ; echo "Child 2B: " , bin2hex ( $ch ...
https://man.mtool.work/php/8.3/random-engine-xoshiro256starstar.jumplong.html
tidy::root — Tidy パースツリーのルートを表す tidyNode | PHP 8.3 8433
tidy::root tidy_get_root (PHP 5, PHP 7, PHP 8, PECL tidy 0.5.2-1.0.0) tidy::root -- tidy_get_root — Tidy パースツリーのルートを表す tidyNode を返す 説明 オブジェクト指向型 public function tidy::root (): ? tidyNode 手続き型 function tidy_get ... tidy_parse_string ( $html ); dump_nodes ( $tidy -> root (), 1 ); function dump_nodes ( $node , $indent ) { if( $node -> hasChildren ()) { foreach( $node -> child as $child ) { echo str_repeat ( '.' , $indent * 2 ) . ( $child -> name ? $child -> name : ... '"' . $child -> value . '"' ). "\n" ; dump_nodes ( $child , $indent + 1 ); } } } ?> 上の例の出力は以下となります。 ..html ....head .... ...
https://man.mtool.work/php/8.3/tidy.root.html
The Swoole\Process class | PHP 8.3 8384
The Swoole\Process class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Process { /* 定数 */ const int IPC_NOWAIT = 256 ; /* メソッド */ public static function alarm ( int $interval_usec ): void public function close (): void publi ... ess::alarm — High precision timer which triggers signal with fixed interval. Swoole\Process::close — Close the pipe to the child process. Swoole\Process::__construct — Construct a process. Swoole\Process::daemon — Change the process to be a daemon pro ... Process::__destruct — Destroy the process. Swoole\Process::exec — Execute system commands. Swoole\Process::exit — Stop the child processes. Swoole\Process::freeQueue — Destroy the message queue created by swoole_process::useQueue. Swoole\Process::kill ... — Send signal to the child process. Swoole\Process::name — Set name of the process. Swoole\Process::pop — Read and pop data from the message queue. S ...
https://man.mtool.work/php/8.3/class.swoole-process.html
SimpleXMLElement::children — 指定したノードの子ノードを見付ける | PHP 8.3 8323
SimpleXMLElement::children (PHP 5, PHP 7, PHP 8) SimpleXMLElement::children — 指定したノードの子ノードを見付ける 説明 public function SimpleXMLElement::children ( ? string $namespaceOrPrefix = null , bool $isPrefix = false ): ? SimpleXMLEle ... ノードが子を持つかどうかにかかわらず SimpleXMLElement 要素を返します。 ノードが属性である場合は、 null を返します。 例 例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 -> 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 $fourt ...
https://man.mtool.work/php/8.3/simplexmlelement.children.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT