CakeFest 2024: The Official CakePHP Conference

tidy_config_count

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

tidy_config_count指定したドキュメントについて発生した Tidy 設定エラーの数を返す

説明

tidy_config_count(tidy $tidy): int

指定した Tidy オブジェクト tidy の設定時に発生した Tidy エラーの数を返します。

パラメータ

tidy

Tidy オブジェクト。

戻り値

エラーの数を返します。

例1 tidy_config_count() の例

<?php
$html
= '<p>test</I>';

$config = array('doctype' => 'bogus');

$tidy = tidy_parse_string($html, $config);

/* 'bogus' は有効な文章型でないので、1 を出力する */
echo tidy_config_count($tidy);
?>

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top