<?xml version='1.0' encoding="utf-8"?> <!-- $Revision$ --> <refentry xml:id="function.tidy-warning-count" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>tidy_warning_count</refname> <refpurpose>Returns the Number of Tidy warnings encountered for specified document</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>tidy_warning_count</methodname> <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> <para> Returns the number of Tidy warnings encountered for the specified document. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>object</parameter></term> <listitem> <para> &tidy.object; </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the number of warnings. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>tidy_warning_count</function> example</title> <programlisting role="php"> <![CDATA[ <?php $html = '<p>test</i> <bogustag>bogus</bogustag>'; $tidy = tidy_parse_string($html); echo tidy_error_count($tidy) . "\n"; //1 echo tidy_warning_count($tidy) . "\n"; //5 ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>tidy_error_count</function></member> <member><function>tidy_access_count</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"~/.phpdoc/manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->