CakeFest 2024: The Official CakePHP Conference

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

パーサオプション定数 のひとつ。

value

true を設定するとオプションが有効になり、それ以外を設定すると 無効になります。

戻り値

成功した場合に true を、失敗した場合に false を返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top