Hàm xml_parser_set_option () trong PHP
❮ Tham chiếu trình phân tích cú pháp XML PHP
Thí dụ
Đặt một tùy chọn trong trình phân tích cú pháp XML:
<?php
$parser=xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_free($parser);
?>
Định nghĩa và Cách sử dụng
Hàm xml_parser_set_option () đặt các tùy chọn trong trình phân tích cú pháp XML.
Cú pháp
xml_parser_set_option(parser, option, value)
Giá trị tham số
Parameter | Description |
---|---|
parser | Required. Specifies the XML parser to use |
option | Required. Specifies the option to set. Possible values:
|
value | Required. Specifies options new value |
Chi tiết kỹ thuật
Giá trị trả lại: | ĐÚNG về thành công. FALSE khi thất bại |
---|---|
Phiên bản PHP: | 4.0+ |
❮ Tham chiếu trình phân tích cú pháp XML PHP