Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<tidy::getConfigtidy::getOpt>
^tidyLast updated: Mon, 26 Oct 2026

tidy::getHtmlVer

tidy_get_html_ver

(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2)

tidy::getHtmlVer -- tidy_get_html_ver — Get the Detected HTML version for the specified document

Description

Object-oriented style

public function tidy::getHtmlVer(): int

Procedural style

function tidy_get_html_ver(tidy $tidy): int

Returns the detected HTML version for the specified tidy tidy.

Parameters

tidy

The Tidy object.

Return Values

Returns the detected HTML version.

Warning

This function is not yet implemented in the Tidylib itself, so it always return 0.


<tidy::getConfigtidy::getOpt>
^tidyLast updated: Mon, 26 Oct 2026