php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容

源代码在线查看: function.tidy-error-count.html

软件大小: 3633 K
上传用户: fengkuangyidao
关键词: php PHP 文档 实际应用
下载地址: 免注册下载 普通下载 VIP

相关代码

												 				  Returns the Number of Tidy errors encountered for specified document				  				 				 				 tidy_diagnose				 tidy_get_body				 Tidy Functions				 PHP Manual								 				  tidy_error_count				  (PHP 5, PECL tidy:0.5.2-1.2)tidy_error_count — Returns the Number of Tidy errors encountered for specified document								 				 				  Description				  				   int tidy_error_count				    ( tidy $object				   )								  				   tidy_error_count() returns the number of Tidy errors				   encountered for the specified document.				  				  				   				    Example #1 tidy_error_count() example				    								<?php$html = '<p>test</i><bogustag>bogus</bogustag>';$tidy = tidy_parse_string($html);echo tidy_error_count($tidy) . "\n"; //1echo $tidy->errorBuffer;?>												    								    The above example will output:				    								1				line 1 column 1 - Warning: missing <!DOCTYPE> declaration				line 1 column 8 - Warning: discarding unexpected </i>				line 2 column 1 - Error: <bogustag> is not recognized!				line 2 column 1 - Warning: discarding unexpected <bogustag>				line 2 column 16 - Warning: discarding unexpected </bogustag>				line 1 column 1 - Warning: inserting missing 'title' element								    				   				  				  				   See also tidy_access_count() and				   tidy_warning_count().				  				 												 tidy_diagnose				 tidy_get_body				 Tidy Functions				 PHP Manual											

相关资源