Query: tidy_config_count
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TIDY_CONFIG_COUNT(3) 1 TIDY_CONFIG_COUNT(3) tidy_config_count - Returns the Number of Tidy configuration errors encountered for specified documentSYNOPSISint tidy_config_count (tidy $object)DESCRIPTIONReturns the number of errors encountered in the configuration of the specified tidy $object.PARAMETERSo $object - The Tidy object.RETURN VALUESReturns the number of errors.EXAMPLESExample #1 tidy_config_count(3) example <?php $html = '<p>test</I>'; $config = array('doctype' => 'bogus'); $tidy = tidy_parse_string($html, $config); /* This outputs 1, because 'bogus' isn't a valid doctype */ echo tidy_config_count($tidy); ?> PHP Documentation Group TIDY_CONFIG_COUNT(3)