PHP SimpleXML Function
- Previous Page PHP MySQLi
- Next Page PHP String
مقدمه PHP SimpleXML
فunctiون SimpleXML به شما اجازه میدهد XML را به شیء تبدیل کنید.
با استفاده از انتخابگرهای معمولی ویژگیها یا ایتروتورهای آرایه، میتوان این شیء را مانند هر شیء دیگری پردازش کرد.
برخی از functiونها نیاز به نسخه جدیدترین PHP دارند.
نصب
SimpleXML functiون بخش اصلی PHP است. نیازی به نصب نیست تا از این functiونها استفاده کنید.
PHP SimpleXML Function
PHP:Indicates the earliest PHP version that supports this function.
Function | Description | PHP |
---|---|---|
__construct() | Create a new SimpleXMLElement object. | 5 |
addAttribute() | Add an attribute to the SimpleXML element. | 5 |
addChild() | Add a child element to the SimpleXML element. | 5 |
asXML() | Get XML string from SimpleXML element. | 5 |
attributes() | Get the attributes of the SimpleXML element. | 5 |
children() | Get the children of the specified node. | 5 |
getDocNamespaces() | Get the namespace of the XML document. | 5 |
getName() | Get the name of the SimpleXML element. | 5 |
getNamespaces() | Get namespace from XML data. | 5 |
registerXPathNamespace() | Create namespace context for the next XPath query. | 5 |
simplexml_import_dom() | Get SimpleXMLElement object from DOM node. | 5 |
simplexml_load_file() | Get SimpleXMLElement object from XML document. | 5 |
simplexml_load_string() | Get SimpleXMLElement object from XML string. | 5 |
xpath() | Run XPath queries on XML data. | 5 |
PHP SimpleXML Constants
None.
- Previous Page PHP MySQLi
- Next Page PHP String