<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.tidy.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.tidy-error-count.php',
    1 => 'tidy_error_count',
    2 => 'Returns the Number of Tidy errors encountered for specified document',
  ),
  'up' => 
  array (
    0 => 'ref.tidy.php',
    1 => 'Tidy Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.tidy-config-count.php',
    1 => 'tidy_config_count',
  ),
  'next' => 
  array (
    0 => 'function.tidy-get-output.php',
    1 => 'tidy_get_output',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/tidy/functions/tidy-error-count.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.tidy-error-count" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">tidy_error_count</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8, PECL tidy &gt;= 0.5.2)</p><p class="refpurpose"><span class="refname">tidy_error_count</span> &mdash; <span class="dc-title">Returns the Number of Tidy errors encountered for specified document</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.tidy-error-count-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>tidy_error_count</strong></span>(<span class="methodparam"><span class="type"><a href="class.tidy.php" class="type tidy">tidy</a></span> <code class="parameter">$tidy</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Returns the number of Tidy errors encountered for the specified document.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.tidy-error-count-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">tidy</code></dt>
     <dd>
      <p class="para">
       Das <span class="classname"><a href="class.tidy.php" class="classname">Tidy</a></span> Objekt.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.tidy-error-count-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns the number of errors.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.tidy-error-count-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>tidy_error_count()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$html </span><span style="color: #007700">= </span><span style="color: #DD0000">'&lt;p&gt;test&lt;/i&gt;<br />&lt;bogustag&gt;bogus&lt;/bogustag&gt;'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$tidy </span><span style="color: #007700">= </span><span style="color: #0000BB">tidy_parse_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$html</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">tidy_error_count</span><span style="color: #007700">(</span><span style="color: #0000BB">$tidy</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">; </span><span style="color: #FF8000">//1<br /><br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">$tidy</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">errorBuffer</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">1
line 1 column 1 - Warning: missing &lt;!DOCTYPE&gt; declaration
line 1 column 8 - Warning: discarding unexpected &lt;/i&gt;
line 2 column 1 - Error: &lt;bogustag&gt; is not recognized!
line 2 column 1 - Warning: discarding unexpected &lt;bogustag&gt;
line 2 column 16 - Warning: discarding unexpected &lt;/bogustag&gt;
line 1 column 1 - Warning: inserting missing &#039;title&#039; element</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.tidy-error-count-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.tidy-access-count.php" class="function" rel="rdfs-seeAlso">tidy_access_count()</a> - Returns the Number of Tidy accessibility warnings encountered for specified document</span></li>
   <li><span class="function"><a href="function.tidy-warning-count.php" class="function" rel="rdfs-seeAlso">tidy_warning_count()</a> - Returns the Number of Tidy warnings encountered for specified document</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>