XMLReader XMLReader::setParserProperty
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
XMLReader::setParserProperty — 파서 옵션 설정
설명
public XMLReader::setParserProperty(int $property
, bool $value
): bool
파서 옵션을 설정합니다. 옵션은 XMLReader::open() 또는 XMLReader::xml()이 호출된 후 첫 번째 XMLReader::read() 호출 전에 설정해야 합니다.
매개변수
property
- parser option constants 중 하나입니다.
value
true
로 설정하면 옵션이 활성화되고 그렇지 않으면 비활성화됩니다.
반환 값
성공하면 true
를, 실패하면 false
를 반환합니다.