php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
simplexml.stub.php
Go to the documentation of this file.
1<?php
2
4
5function simplexml_load_file(string $filename, ?string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {}
6
7function simplexml_load_string(string $data, ?string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {}
8
9function simplexml_import_dom(object $node, ?string $class_name = SimpleXMLElement::class): ?SimpleXMLElement {}
10
13{
15 public function xpath(string $expression): array|null|false {}
16
18 public function registerXPathNamespace(string $prefix, string $namespace): bool {}
19
21 public function asXML(?string $filename = null): string|bool {}
22
27 public function saveXML(?string $filename = null): string|bool {}
28
30 public function getNamespaces(bool $recursive = false): array {}
31
33 public function getDocNamespaces(bool $recursive = false, bool $fromRoot = true): array|false {}
34
36 public function children(?string $namespaceOrPrefix = null, bool $isPrefix = false): ?SimpleXMLElement {}
37
39 public function attributes(?string $namespaceOrPrefix = null, bool $isPrefix = false): ?SimpleXMLElement {}
40
41 public function __construct(string $data, int $options = 0, bool $dataIsURL = false, string $namespaceOrPrefix = "", bool $isPrefix = false) {}
42
44 public function addChild(string $qualifiedName, ?string $value = null, ?string $namespace = null): ?SimpleXMLElement {}
45
47 public function addAttribute(string $qualifiedName, string $value, ?string $namespace = null): void {}
48
50 public function getName(): string {}
51
52 public function __toString(): string {}
53
55 public function count(): int {}
56
58 public function rewind(): void {}
59
61 public function valid(): bool {}
62
65
67 public function key(): string {}
68
70 public function next(): void {}
71
73 public function hasChildren(): bool {}
74
77}
78
80{
81}
registerXPathNamespace(string $prefix, string $namespace)
children(?string $namespaceOrPrefix=null, bool $isPrefix=false)
asXML(?string $filename=null)
__construct(string $data, int $options=0, bool $dataIsURL=false, string $namespaceOrPrefix="", bool $isPrefix=false)
getNamespaces(bool $recursive=false)
xpath(string $expression)
getDocNamespaces(bool $recursive=false, bool $fromRoot=true)
addChild(string $qualifiedName, ?string $value=null, ?string $namespace=null)
addAttribute(string $qualifiedName, string $value, ?string $namespace=null)
attributes(?string $namespaceOrPrefix=null, bool $isPrefix=false)
saveXML(?string $filename=null)
$filename
Definition create.php:9
$data
Definition bench.php:6
if(PHP_SAPI !='cli') if($argc< 1) $options
Definition ext_skel.php:376
simplexml_load_file(string $filename, ?string $class_name=SimpleXMLElement::class, int $options=0, string $namespace_or_prefix="", bool $is_prefix=false)
simplexml_load_string(string $data, ?string $class_name=SimpleXMLElement::class, int $options=0, string $namespace_or_prefix="", bool $is_prefix=false)
simplexml_import_dom(object $node, ?string $class_name=SimpleXMLElement::class)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))
object
$prefix