略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: XSLTProcessor

2024-11-15

The XSLTProcessor class

(PHP 5, PHP 7, PHP 8)

简介

类摘要

class XSLTProcessor {
/* 方法 */
public getParameter(string $namespace, string $name): string|false
public getSecurityPrefs(): int
public hasExsltSupport(): bool
public importStylesheet(object $stylesheet): bool
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): bool
public setSecurityPrefs(int $preferences): int
public transformToDoc(object $document, ?string $returnClass = null): DOMDocument|false
public transformToURI(DOMDocument $doc, string $uri): int
public transformToXml(object $document): string|null|false
}

目录

add a noteadd a note

User Contributed Notes 3 notes

up
3
tschallacka
6 years ago
uncomment extension=php_xsl.dll on windows to activate it in your php.ini. Then restart your webserver to refresh php.
up
1
joandres52725lm at gmail dot com
2 years ago
[Update] PHP version /.3.15 and Windows Uncomment `extension=xsl` to activate it in your php.ini. Then restart your webserver to refresh php.
up
0
flavius
6 years ago
It requires PHP5 XSL extension. On linux:

sudo apt-get install php5-xsl

官方地址:https://www.php.net/manual/en/class.xsltprocessor.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3