Hàm xml_parser_set_option() của PHP
❮ Tham chiếu trình phân tích cú pháp XML của PHP
Ví dụ
Đặ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ả về: | ĐÚNG khi 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 của PHP