DOM DOMElement::getAttributeNS
(PHP 5, PHP 7, PHP 8)
DOMElement::getAttributeNS — 속성 값을 반환
설명
public DOMElement::getAttributeNS(?string $namespace
, string $localName
): string
현재 노드에 대한 로컬 이름이 localName
인 네임스페이스 namespace
의 특성 값을 가져옵니다.
매개변수
namespace
- 네임스페이스 URI입니다.
localName
- local name.
반환 값
속성 값 또는 지정된 localName
및 namespace
가 있는 속성이 없는 경우 빈 문자열입니다.
기타
- DOMElement::hasAttributeNS() - 속성이 존재하는지 확인
- DOMElement::setAttributeNS() - 새 속성 추가
- DOMElement::removeAttributeNS() - 속성 제거