Query: tidy_access_count
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TIDY_ACCESS_COUNT(3) 1 TIDY_ACCESS_COUNT(3) tidy_access_count - Returns the Number of Tidy accessibility warnings encountered for specified documentSYNOPSISint tidy_access_count (tidy $object)DESCRIPTIONtidy_access_count(3) returns the number of accessibility warnings found for the specified document.PARAMETERSo $object - The Tidy object.RETURN VALUESReturns the number of warnings.EXAMPLESExample #1 tidy_access_count(3) example <?php $html ='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html><head><title>Title</title></head> <body> <p><img src="img.png"></p> </body></html>'; // select the accessibility check level: 1, 2 or 3 $config = array('accessibility-check' => 3); $tidy = new tidy(); $tidy->parseString($html, $config); $tidy->cleanRepair(); /* Never forget to call this! */ $tidy->diagnose(); echo tidy_access_count($tidy); //5 ?>NOTESNote Due to the design of the TidyLib, you must call tidy_diagnose(3) before tidy_access_count(3) or it will return always 0. You must also need to enable the accessibility-check option.SEE ALSOtidy_error_count(3), tidy_warning_count(3). PHP Documentation Group TIDY_ACCESS_COUNT(3)