(PHP 5)
Procedural style:
Object oriented style:
tidy_diagnose() runs diagnostic tests on the given resource.
如果成功则返回 TRUE,失败则返回 FALSE。