DOM DOMElement::hasAttributeNS
(PHP 5, PHP 7, PHP 8)
DOMElement::hasAttributeNS — 속성이 존재하는지 확인
설명
public DOMElement::hasAttributeNS(?string $namespace
, string $localName
): bool
localName
이라는 네임스페이스 namespace
의 특성이 요소의 멤버로 존재하는지 여부를 나타냅니다.
매개변수
namespace
- 네임스페이스 URI입니다.
localName
- local name.
반환 값
성공하면 true
를, 실패하면 false
를 반환합니다.
기타
- DOMElement::hasAttribute() - 속성이 존재하는지 확인
- DOMElement::getAttributeNS() - 속성 값을 반환
- DOMElement::setAttributeNS() - 새 속성 추가
- DOMElement::removeAttributeNS() - 속성 제거