php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
SimpleXMLElement Class Reference
Inheritance diagram for SimpleXMLElement:
Stringable Countable RecursiveIterator Iterator Traversable SimpleXMLIterator

Public Member Functions

 xpath (string $expression)
 
 registerXPathNamespace (string $prefix, string $namespace)
 
 asXML (?string $filename=null)
 
 saveXML (?string $filename=null)
 
 getNamespaces (bool $recursive=false)
 
 getDocNamespaces (bool $recursive=false, bool $fromRoot=true)
 
 children (?string $namespaceOrPrefix=null, bool $isPrefix=false)
 
 attributes (?string $namespaceOrPrefix=null, bool $isPrefix=false)
 
 __construct (string $data, int $options=0, bool $dataIsURL=false, string $namespaceOrPrefix="", bool $isPrefix=false)
 
 addChild (string $qualifiedName, ?string $value=null, ?string $namespace=null)
 
 addAttribute (string $qualifiedName, string $value, ?string $namespace=null)
 
 getName ()
 
 __toString ()
 
 count ()
 
 rewind ()
 
 valid ()
 
 current ()
 
 key ()
 
 next ()
 
 hasChildren ()
 
 getChildren ()
 

Detailed Description

@not-serializable

Definition at line 12 of file simplexml.stub.php.

Constructor & Destructor Documentation

◆ __construct()

SimpleXMLElement::__construct ( string $data,
int $options = 0,
bool $dataIsURL = false,
string $namespaceOrPrefix = "",
bool $isPrefix = false )

Definition at line 41 of file simplexml.stub.php.

Member Function Documentation

◆ __toString()

SimpleXMLElement::__toString ( )

Implements Stringable.

Definition at line 52 of file simplexml.stub.php.

◆ addAttribute()

SimpleXMLElement::addAttribute ( string $qualifiedName,
string $value,
?string $namespace = null )

@tentative-return-type

Definition at line 47 of file simplexml.stub.php.

◆ addChild()

SimpleXMLElement::addChild ( string $qualifiedName,
?string $value = null,
?string $namespace = null )

@tentative-return-type

Definition at line 44 of file simplexml.stub.php.

◆ asXML()

SimpleXMLElement::asXML ( ?string $filename = null)

@tentative-return-type

Definition at line 21 of file simplexml.stub.php.

◆ attributes()

SimpleXMLElement::attributes ( ?string $namespaceOrPrefix = null,
bool $isPrefix = false )

@tentative-return-type

Definition at line 39 of file simplexml.stub.php.

◆ children()

SimpleXMLElement::children ( ?string $namespaceOrPrefix = null,
bool $isPrefix = false )

@tentative-return-type

Definition at line 36 of file simplexml.stub.php.

◆ count()

SimpleXMLElement::count ( )

@tentative-return-type

Implements Countable.

Definition at line 55 of file simplexml.stub.php.

◆ current()

SimpleXMLElement::current ( )

@tentative-return-type

Implements Iterator.

Definition at line 64 of file simplexml.stub.php.

◆ getChildren()

SimpleXMLElement::getChildren ( )

@tentative-return-type

Implements RecursiveIterator.

Definition at line 76 of file simplexml.stub.php.

◆ getDocNamespaces()

SimpleXMLElement::getDocNamespaces ( bool $recursive = false,
bool $fromRoot = true )

@tentative-return-type

Definition at line 33 of file simplexml.stub.php.

◆ getName()

SimpleXMLElement::getName ( )

@tentative-return-type

Definition at line 50 of file simplexml.stub.php.

◆ getNamespaces()

SimpleXMLElement::getNamespaces ( bool $recursive = false)

@tentative-return-type

Definition at line 30 of file simplexml.stub.php.

◆ hasChildren()

SimpleXMLElement::hasChildren ( )

@tentative-return-type

Implements RecursiveIterator.

Definition at line 73 of file simplexml.stub.php.

◆ key()

SimpleXMLElement::key ( )

@tentative-return-type

Implements Iterator.

Definition at line 67 of file simplexml.stub.php.

◆ next()

SimpleXMLElement::next ( )

@tentative-return-type

Implements Iterator.

Definition at line 70 of file simplexml.stub.php.

◆ registerXPathNamespace()

SimpleXMLElement::registerXPathNamespace ( string $prefix,
string $namespace )

@tentative-return-type

Definition at line 18 of file simplexml.stub.php.

◆ rewind()

SimpleXMLElement::rewind ( )

@tentative-return-type

Implements Iterator.

Definition at line 58 of file simplexml.stub.php.

◆ saveXML()

SimpleXMLElement::saveXML ( ?string $filename = null)

@tentative-return-type @alias SimpleXMLElement\asXML

Definition at line 27 of file simplexml.stub.php.

◆ valid()

SimpleXMLElement::valid ( )

@tentative-return-type

Implements Iterator.

Definition at line 61 of file simplexml.stub.php.

◆ xpath()

SimpleXMLElement::xpath ( string $expression)

@tentative-return-type

Definition at line 15 of file simplexml.stub.php.


The documentation for this class was generated from the following file: