= 5.1.0, PHP 7, PHP 8)XMLReader::setParserProperty — Set parser options說(shuō)明public XMLReader::setParserProperty(int $">

XMLReader::setParserProperty

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

XMLReader::setParserPropertySet parser options

說(shuō)明

public XMLReader::setParserProperty(int $property, bool $value): bool

Set parser options. The options must be set after XMLReader::open() or XMLReader::xml() are called and before the first XMLReader::read() call.

參數(shù)

property

One of the parser option constants.

value

If set to true the option will be enabled otherwise will be disabled.

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false