« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 13 for firstElementChild (0.001 sec.)
DOMDocumentFragment クラス | PHP 8.3 12879
DOMDocumentFragment クラス (PHP 5, PHP 7, PHP 8) クラス概要 class DOMDocumentFragment extends DOMNode implements DOMParentNode { /* 継承した定数 */ public const int DOMNode::DOCUMENT_POSITION_DISCONNECTED = 0x1 ; public const int DOMNode::D ... blic const int DOMNode::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20 ; /* プロパティ */ public readonly ? DOMElement $ firstElementChild ; public readonly ? DOMElement $ lastElementChild ; public readonly int $ childElementCount ; /* 継承したプロパティ */ pub ... function DOMNode::__sleep (): array public function DOMNode::__wakeup (): void } プロパティ childElementCount 子要素の数。 firstElementChild 最初の子要素。存在しない場合は null になります。 lastElementChild 最後の子要素。存在しない場合は null になります。 変更履歴 ... バージョン 説明 8.0.0 プロパティ firstElementChild , lastElementChild , childElementCount が追加されました。 8.0.0 DOMDocumentFragment は、 DOMParentNode を実装しました。 目 ...
https://man.mtool.work/php/8.3/class.domdocumentfragment.html
Dom\DocumentFragment クラス | PHP 8.3 11014
Dom\DocumentFragment クラス (PHP 8 >= 8.4.0) はじめに このクラスは、ドキュメントのフラグメントを表します。 フラグメントは、他のノードのコンテナとして使えます。 このクラスは、 DOMDocumentFragment と同等ですが、 モダンかつ仕様に準拠しています ... ic const int Dom\Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20 ; /* プロパティ */ public readonly ? Dom\Element $ firstElementChild ; public readonly ? Dom\Element $ lastElementChild ; public readonly int $ childElementCount ; public readonly Dom\HTMLCol ... tring $ textContent ; /* メソッド */ /* Not documented yet */ /* 継承したメソッド */ /* Not documented yet */ } プロパティ firstElementChild 最初の子要素。存在しない場合は null になります。 lastElementChild 最後の子要素。存在しない場合は null になります。 childEl ...
https://man.mtool.work/php/8.3/class.dom-documentfragment.html
DOMElement クラス | PHP 8.3 10275
DOMElement クラス (PHP 5, PHP 7, PHP 8) クラス概要 class DOMElement extends DOMNode implements DOMParentNode , DOMChildNode { /* 継承した定数 */ public const int DOMNode::DOCUMENT_POSITION_DISCONNECTED = 0x1 ; public const int DOMNode::DOCU ... ; public string $ className ; public string $ id ; public readonly mixed $ schemaTypeInfo ; public readonly ? DOMElement $ firstElementChild ; public readonly ? DOMElement $ lastElementChild ; public readonly int $ childElementCount ; public readonly ? DOMElement ... function DOMNode::__sleep (): array public function DOMNode::__wakeup (): void } プロパティ childElementCount 子要素の数。 firstElementChild 最初の子要素。存在しない場合は null になります。 lastElementChild 最後の子要素。存在しない場合は null になります。 nextEle ... rtAdjacentElement() , DOMElement::insertAdjacentText() , DOMElement::toggleAttribute() が追加されました。 8.0.0 プロパティ firstElementChild , lastElementChild , childElementCount , previousElementSibling , nextElementSibling が追加されました。 8.0.0 DOMElement は ...
https://man.mtool.work/php/8.3/class.domelement.html
Dom\Document クラス | PHP 8.3 9536
Dom\Document クラス (PHP 8 >= 8.4.0) はじめに HTML ドキュメントあるいは XML ドキュメント全体を表し、 ドキュメントツリーのルートとなります。 このクラスは、 DOMDocument と同等ですが、 モダンかつ仕様に準拠しています。 このクラスは、 Dom\XMLDoc ... readonly ? Dom\DocumentType $ doctype ; public readonly ? Dom\Element $ documentElement ; public readonly ? Dom\Element $ firstElementChild ; public readonly ? Dom\Element $ lastElementChild ; public readonly int $ childElementCount ; public readonly Dom\HTMLCol ... 未定義の場合は null documentElement ドキュメント要素に対応する Dom\Element 。 要素がないドキュメントの場合 null になります。 firstElementChild 最初の子要素。存在しない場合は null になります。 lastElementChild 最後の子要素。存在しない場合は null になります。 childEl ...
https://man.mtool.work/php/8.3/class.dom-document.html
Dom\Element クラス | PHP 8.3 9536
Dom\Element クラス (PHP 8 >= 8.4.0) はじめに 要素を表します。 このクラスは、 DOMElement と同等ですが、 モダンかつ仕様に準拠しています。 クラス概要 class Dom\Element extends Dom\Node implements Dom\ParentNode , Dom\ChildNode { /* 継承した定数 ... ublic readonly Dom\TokenList $ classList ; public readonly Dom\NamedNodeMap $ attributes ; public readonly ? Dom\Element $ firstElementChild ; public readonly ? Dom\Element $ lastElementChild ; public readonly int $ childElementCount ; public readonly ? Dom\Eleme ... 返します。 attributes この要素の属性を表す Dom\NamedNodeMap のインスタンスを返します id "id" 属性を通して反映される要素のID firstElementChild 最初の子要素。存在しない場合は null になります。 lastElementChild 最後の子要素。存在しない場合は null になります。 childEl ...
https://man.mtool.work/php/8.3/class.dom-element.html
DOMNode::getRootNode — ルート(根)ノードを取得する | PHP 8.3 8797
DOMNode::getRootNode (PHP 8 >= 8.3.0) DOMNode::getRootNode — ルート(根)ノードを取得する 説明 public function DOMNode::getRootNode ( ? array $options = null ): DOMNode ルート(根)ノードを取得します。 パラメータ options このパラメータにはまだ意 ... new DOMDocument (); $dom -> loadXML ( '<?xml version="1.0"?><html><body/></html>' ); var_dump ( $dom -> documentElement -> firstElementChild -> getRootNode () === $dom ); ?> 上の例の出力は以下となります。 bool(true) 他のマニュアルの関連ページ Docker swarm セキュリ ...
https://man.mtool.work/php/8.3/domnode.getrootnode.html
DOMNode::compareDocumentPosition — 2つのノードの位置を比較します。 | PHP 8.3 8410
DOMNode::compareDocumentPosition (PHP 8 >= 8.4.0) DOMNode::compareDocumentPosition — 2つのノードの位置を比較します。 説明 public function DOMNode::compareDocumentPosition ( DOMNode $other ): int このノードに対するもう一方のノードの位置を比較 ... 2/> </root> XML; $dom = new DOMDocument (); $dom -> loadXML ( $xml ); $root = $dom -> documentElement ; $child1 = $root -> firstElementChild ; $child2 = $child1 -> nextElementSibling ; var_dump ( $root -> compareDocumentPosition ( $child1 )); var_dump ( $child2 - ...
https://man.mtool.work/php/8.3/domnode.comparedocumentposition.html
DOMElement::insertAdjacentElement — 隣接する要素を挿入する | PHP 8.3 8041
DOMElement::insertAdjacentElement (PHP 8 >= 8.3.0) DOMElement::insertAdjacentElement — 隣接する要素を挿入する 説明 public function DOMElement::insertAdjacentElement ( string $where , DOMElement $element ): ? DOMElement where で指定された相対 ... ML ( '<?xml version="1.0"?><container><p>foo</p></container>' ); $container = $dom -> documentElement ; $p = $container -> firstElementChild ; $p -> insertAdjacentElement ( 'beforebegin' , $dom -> createElement ( 'A' )); echo $dom -> saveXML (); ?> 上の例の出力は ...
https://man.mtool.work/php/8.3/domelement.insertadjacentelement.html
DOMElement::insertAdjacentText — 隣接するテキストを挿入する | PHP 8.3 8041
DOMElement::insertAdjacentText (PHP 8 >= 8.3.0) DOMElement::insertAdjacentText — 隣接するテキストを挿入する 説明 public function DOMElement::insertAdjacentText ( string $where , string $data ): void where で指定された相対的な位置に、 テキス ... dXML ( '<?xml version="1.0"?><container><p>H</p></container>' ); $container = $dom -> documentElement ; $p = $container -> firstElementChild ; $p -> insertAdjacentText ( "afterbegin" , "P" ); $p -> insertAdjacentText ( "beforeend" , "P" ); echo $dom -> saveXML () ...
https://man.mtool.work/php/8.3/domelement.insertadjacenttext.html
Dom\HTMLElement クラス | PHP 8.3 7302
Dom\HTMLElement クラス (PHP 8 >= 8.4.0) はじめに HTML 名前空間内の要素を表します。 クラス概要 class Dom\HTMLElement extends Dom\Element { /* 継承した定数 */ public const int Dom\Node::DOCUMENT_POSITION_DISCONNECTED = 0x1 ; public const int ... ublic readonly Dom\TokenList $ classList ; public readonly Dom\NamedNodeMap $ attributes ; public readonly ? Dom\Element $ firstElementChild ; public readonly ? Dom\Element $ lastElementChild ; public readonly int $ childElementCount ; public readonly ? Dom\Eleme ...
https://man.mtool.work/php/8.3/class.dom-htmlelement.html
PREV 1 2 NEXT