まとめたものはこっち Simple HTML DOM Parserマニュアルの「How to access the HTML element’s attributes?」の翻訳。 Get, Set and Remove attributes 指定した属性の値を取得 //下記はhref属性の取得。 $value = $e->href; 指定した属性の値に代入 //下記はhref属性にセット。 $e->href = ‘my link’; 指定した属性の値を「NULL」に変更、削除? $e->href = null; 指定した属性の存在をチェック if(isset($e->href)){ echo 'href exist(存在する)!'; }