DomAttribute->valueとは? わかりやすく解説

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

DomAttribute->value

(No version information available, might be only in CVS)
DomAttribute->value — 属性の値を返す

説明

class DomAttribute {
string value ( void )
} この関数は属性の値を返します。

例 518. ノードの全ての属性を取得する
<?php

include("example.inc");

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

$root = $dom->document_element();
$attrs = $root->attributes();

echo 'Attributes of ' . $root->node_name() . "\n";
foreach ($attrs as $attribute) {
     echo ' - ' . $attribute->name . ' : ' . $attribute->value . "\n";
}

?>
上の例の出力は以下となります。

Attributes of chapter
 - language : en

    


返り値

Returns the value of the attribute.

PHP 5 への移行

DOMAttr の value プロパティを使用してください。

参考

DomAttribute->set_value
DomAttribute->name



このページでは「PHP関数リファレンス」からDomAttribute->valueを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDomAttribute->valueを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDomAttribute->value を検索

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

辞書ショートカット

すべての辞書の索引

「DomAttribute->value」の関連用語

DomAttribute->valueのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS