在 PHP 中,tidy::__construct 是 Tidy 类的构造函数,用于创建一个新的 Tidy 对象
▥php
𝄐 0
php添加图片代码,php提供的内置数学函数可以更方便使用吗,php跳转页面代码,php跳出本次循环,php替换字符串中的字符,PHP 提取书法图片文字骨架代码
在 PHP 中,tidy::__construct 是 Tidy 类的构造函数,用于创建一个新的 Tidy 对象。
构造函数的语法如下:
php
public tidy::__construct([mixed $filename = NULL [, mixed $config = NULL [, mixed $encoding = NULL [, bool $use_include_path = false [, bool $diagnostics = false [, bool $isXhtml = false [, mixed $showBodyOnly = false [, mixed $tidyParams = NULL [, bool $isXML = false [, mixed $strict = FALSE [, mixed $inputEncoding = NULL [, mixed $outputEncoding = NULL [, bool $quiet = FALSE [, bool $keepWhitespace = FALSE [, bool $indent = FALSE [, bool $indentSpaces = 2 [, string $newline = CRLF [, mixed $outputXml = FALSE [, bool $showWarnings = FALSE [, bool $showErrors = FALSE [, bool $bodyOnly = FALSE [, bool $wrap = 0 [, bool $wrap_section = FALSE [, bool $asciiChars = FALSE [, string $bare = FALSE [, bool $clean = FALSE [, bool $logicalEmphasis = FALSE [, bool $dropEmptyParas = FALSE [, bool $fixComments = FALSE [, bool $fixUri = FALSE [, bool $lowerLiterals = FALSE [, bool $uppercaseLiterals = FALSE [, bool $charEncoding = FALSE [, bool $mergeDivs = FALSE [, bool $word2000 = FALSE [, int $tidyMark = "<tidy_untitled>" [, bool $outputBOM = FALSE [, bool $inputXml = FALSE [, string $inputXhtml = FALSE [, bool $indentCdata = FALSE [, mixed $braces = NULL [, bool $indentAttributes = FALSE [, bool $newBlocklevelTags = FALSE [, bool $newEmptyTags = FALSE [, bool $newInlineTags = FALSE [, bool $newlineAtStart = FALSE [, bool $outputFile = FALSE [, bool $outputHtml = FALSE [, bool $outputXhtml = FALSE [, bool $outputHtml5 = FALSE [, bool $outputXmlDefault = FALSE [, bool $outputXmlString = FALSE [, bool $outputJson = FALSE [, mixed $outputJsonConverter = FALSE [, bool $doctype = FALSE [, int $docTypeMode = 1 [, string $docTypeString = "omit" [, bool $preserveEntities = FALSE [, string $quoteAmpersand = FALSE [, string $tidyDocData = FALSE [, bool $dropProprietaryAttributes = FALSE [, string $outputEncodingonly = FALSE [, bool $correct = FALSE [, bool $replaceColor = FALSE [, int $sortAttributes = 0 [, bool $useCustomTags = FALSE [, bool $tidyAccessSimplify = FALSE [, bool $tidyAccessKeep = FALSE [, bool $tidyAccessFix = FALSE [, bool $tidyAccessStrip = FALSE [, mixed $tidyLitType = NULL [, mixed $tidyLitSuffix = NULL [, mixed $invert = false [, bool $showTransitional = false [, bool $cleanBadHTML = false [, bool $autolearn = false [, bool $literalAttributes = false [, bool $literalMetaTags = false [, bool $byteOrderMarkUtf8 = FALSE [, string $outputTargetLocation = FALSE [, string $outputHead = FALSE [, string $outputSource = FALSE ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
构造函数中包含了很多参数,每个参数的含义和用法请参考 [PHP 官方文档](https://www.php.net/manual/en/tidy.construct.php)。
一个简单的示例:
php
$tidy = new tidy();
这将使用默认值创建一个新的 Tidy 对象。
在 PHP 中,tidy::__construct 是 Tidy 类的构造函数,用于创建一个新的 Tidy 对象。
构造函数的语法如下:
php
public tidy::__construct([mixed $filename = NULL [, mixed $config = NULL [, mixed $encoding = NULL [, bool $use_include_path = false [, bool $diagnostics = false [, bool $isXhtml = false [, mixed $showBodyOnly = false [, mixed $tidyParams = NULL [, bool $isXML = false [, mixed $strict = FALSE [, mixed $inputEncoding = NULL [, mixed $outputEncoding = NULL [, bool $quiet = FALSE [, bool $keepWhitespace = FALSE [, bool $indent = FALSE [, bool $indentSpaces = 2 [, string $newline = CRLF [, mixed $outputXml = FALSE [, bool $showWarnings = FALSE [, bool $showErrors = FALSE [, bool $bodyOnly = FALSE [, bool $wrap = 0 [, bool $wrap_section = FALSE [, bool $asciiChars = FALSE [, string $bare = FALSE [, bool $clean = FALSE [, bool $logicalEmphasis = FALSE [, bool $dropEmptyParas = FALSE [, bool $fixComments = FALSE [, bool $fixUri = FALSE [, bool $lowerLiterals = FALSE [, bool $uppercaseLiterals = FALSE [, bool $charEncoding = FALSE [, bool $mergeDivs = FALSE [, bool $word2000 = FALSE [, int $tidyMark = "<tidy_untitled>" [, bool $outputBOM = FALSE [, bool $inputXml = FALSE [, string $inputXhtml = FALSE [, bool $indentCdata = FALSE [, mixed $braces = NULL [, bool $indentAttributes = FALSE [, bool $newBlocklevelTags = FALSE [, bool $newEmptyTags = FALSE [, bool $newInlineTags = FALSE [, bool $newlineAtStart = FALSE [, bool $outputFile = FALSE [, bool $outputHtml = FALSE [, bool $outputXhtml = FALSE [, bool $outputHtml5 = FALSE [, bool $outputXmlDefault = FALSE [, bool $outputXmlString = FALSE [, bool $outputJson = FALSE [, mixed $outputJsonConverter = FALSE [, bool $doctype = FALSE [, int $docTypeMode = 1 [, string $docTypeString = "omit" [, bool $preserveEntities = FALSE [, string $quoteAmpersand = FALSE [, string $tidyDocData = FALSE [, bool $dropProprietaryAttributes = FALSE [, string $outputEncodingonly = FALSE [, bool $correct = FALSE [, bool $replaceColor = FALSE [, int $sortAttributes = 0 [, bool $useCustomTags = FALSE [, bool $tidyAccessSimplify = FALSE [, bool $tidyAccessKeep = FALSE [, bool $tidyAccessFix = FALSE [, bool $tidyAccessStrip = FALSE [, mixed $tidyLitType = NULL [, mixed $tidyLitSuffix = NULL [, mixed $invert = false [, bool $showTransitional = false [, bool $cleanBadHTML = false [, bool $autolearn = false [, bool $literalAttributes = false [, bool $literalMetaTags = false [, bool $byteOrderMarkUtf8 = FALSE [, string $outputTargetLocation = FALSE [, string $outputHead = FALSE [, string $outputSource = FALSE ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
构造函数中包含了很多参数,每个参数的含义和用法请参考 [PHP 官方文档](https://www.php.net/manual/en/tidy.construct.php)。
一个简单的示例:
php
$tidy = new tidy();
这将使用默认值创建一个新的 Tidy 对象。
本文地址:
/show-281963.html
版权声明:除非特别标注原创,其它均来自互联网,转载时请以链接形式注明文章出处。