(PHP 5, PHP 7, PHP 8)
public getParameter(string $namespace, string $name): string|false
public getSecurityPrefs(): int
public hasExsltSupport(): bool
public importStylesheet(object $stylesheet): bool
public registerPHPFunctionNS(string $namespaceURI, string $name, callable $callable): void
public registerPHPFunctions(array|string|null $functions = null): void
public removeParameter(string $namespace, string $name): bool
public setParameter(string $namespace, string $name, string $value): bool
public setParameter(string $namespace, array $options): bool
public setProfiling(?string $filename): true
public setSecurityPrefs(int $preferences): int
public transformToDoc(object $document, ?string $returnClass = null): object|false
public transformToUri(object $document, string $uri): int
public transformToXml(object $document): string|null|false}
| Version | Description |
|---|---|
| 8.4.0 | The properties doXInclude and cloneDocument are now explicitly defined on the class. |
| 8.4.0 | Added properties maxTemplateDepth and maxTemplateVars. |
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.xsltprocessor.php