← All docs

tidy_warning_count()

Returns the number of warnings encountered for the document.

tidy_warning_count()

function tidy_warning_count(mixed $tidy): int

Returns the number of warnings encountered for the document.

Parameters:

  • $tidy (mixed)

Returns: int

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how tidy_warning_count is implemented in the compiler, see the internals page.