PHP xml_parser_create() Function | Rookie Tutorial
Rookie Tutorial -- Learning is not just technology, but also dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Bookmarks
PHP Tutorial
- PHP Tutorial
- PHP Introduction
- PHP Installation
- PHP Syntax
- PHP Variables
- PHP echo/print
- PHP EOF(heredoc)
- PHP Data Types
- PHP Type Comparisons
- PHP Constants
- PHP Strings
- PHP Operators
- PHP If...Else
- PHP Switch
- PHP Arrays
- PHP Array Sorting
- PHP Superglobals
- PHP While Loops
- PHP For Loops
- PHP Functions
- PHP Magic Constants
- PHP Namespaces
- PHP Object-Oriented
- PHP Quiz
PHP Forms
- PHP Forms
- PHP Form Validation
- PHP Forms - Required Fields
- PHP Forms - Validate Email and URL
- PHP Complete Form Example
- PHP $_GET Variable
- PHP $_POST Variable
PHP Advanced Tutorial
- PHP Multidimensional Arrays
- PHP Date
- PHP Includes
- PHP Files
- PHP File Upload
- PHP Cookie
- PHP Session
- PHP E-mail
- PHP Secure E-mail
- PHP Error
- PHP Exception
- PHP Filters
- PHP Advanced Filters
- PHP JSON
PHP 7 New Features
PHP Database
- PHP MySQL Introduction
- PHP MySQL Connect
- PHP MySQL Create Database
- PHP MySQL Create Table
- PHP MySQL Insert Data
- PHP MySQL Insert Multiple Data
- PHP MySQL Prepared Statements
PHP xml_parser_create() Function
Definition and Usage
xml_parser_create() creates an XML parser and returns an xml parser resource handle for use by other XML functions.
Tip: Use xml_parser_free() to release the parser resource after use.
Syntax
xml_parser_create(encoding)
| Parameter | Description |
|---|---|
| encoding | Optional. Specifies the character encoding for the input. The following values are supported:
|
Technical Details
| Return Value: | Returns a resource handle for the XML parser, or FALSE on failure. |
|---|---|
| PHP Version: | 4.0+ |
Example
<?php
$parser=xml_parser_create();
// ... other XML functions ...
xml_parser_free($parser);
?>
```
YouTip