DOMElement->getAttributeNode()とは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > DOMElement->getAttributeNode()の意味・解説 

DOMElement->getAttributeNode()

(No version information available, might be only in CVS)
DOMElement->getAttributeNode() — 属性ノードを返す

説明

class DOMElement {
DOMAttr getAttributeNode ( string name )
} 現在の要素の、name という名前の 属性ノードを返します。

パラメータ

name
属性の名前。

返り値

属性ノードを返します。

参考

DOMElement->hasAttribute()
DOMElement->setAttributeNode()
DOMElement->removeAttributeNode()


DomElement->get_attribute_node()

(No version information available, might be only in CVS)
DomElement->get_attribute_node() — 与えられた属性のノードを返す

説明

class DomElement {
DomAttribute get_attribute_node ( string name )
} 現在の要素中の与えられた属性のノードを返す Returns the node of the given attribute in the current element.

パラメータ

name
検索する属性の名前。このパラメータは大文字小文字を区別します。

返り値

属性のノードを DomAttribute として返す、 もしくは与えられた名前 name を持つ属性がない場合、FALSE が返されます。

例 528. 属性ノードを取得する
<?php

include("example.inc");

if (!$dom = domxml_open_mem($xmlstr)) {
   echo "Error while parsing the document\n";
   exit;
}

$root = $dom->document_element();
if ($attribute = $root->get_attribute_node('language')) {
   echo 'Language is: ' . $attribute->value() . "\n";
}

?>


PHP 5 への移行

DOMElement->getAttributeNode() を使用してください。

参考

DomElement->get_attribute()
DomElement->set_attribute()




英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DOMElement->getAttributeNode()」の関連用語

DOMElement->getAttributeNode()のお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DOMElement->getAttributeNode()のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2024 by the PHP Documentation Group.

©2024 GRAS Group, Inc.RSS