English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The xml_parser_create() function is used to create an XML parser.
xml_parser_create(encoding)
It is used to create an XML parser.
If successful, this function returns a resource handle that can be used by other XML functions. If it fails, it returns FALSE.
Number | Parameters and Description |
---|---|
1 | encoding specify the output encoding. In PHP 5.0.2 and above versions, the default is UTF-8.Possible values:
Note:In PHP 5 In it, the input encoding is automatically detected. In PHP 4 and earlier versions, this parameter specifies the input and output character encoding. Note:In PHP 5.0.0 and 5.0.1 In it, the default output character set is ISO-8859-1. |
Try the following example to create an XML parser
<?php $local = xml_parser_create(); xml_parser_free($local); ?>Test and see‹/›