File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,15 @@ PHP class for validating web documents with W3C validation API
1212 // Create a new validator object
1313 $validate = new W3CValidator('http://www.walla.co.il');
1414
15+ var_dump($validate->isValid()); /* output: bool(false) */
16+ var_dump($validate->getErrorsCount()); /* output: int(463) */
17+ var_dump($validate->getWarningsCount()); /* output: int(372) */
1518 var_dump($validate->getReport());
1619
1720 /*
1821
19- Output :
20- ------------------------------------------------------------
22+ output :
23+
2124 array(6) {
2225 ["URI"]=>
2326 string(23) "http://www.walla.co.il/"
Original file line number Diff line number Diff line change 55// Create a new validator object
66$ validate = new W3CValidator \W3CValidator ('http://www.walla.co.il ' );
77
8+ var_dump ($ validate ->isValid ());
9+ var_dump ($ validate ->getErrorsCount ());
10+ var_dump ($ validate ->getWarningsCount ());
811var_dump ($ validate ->getReport ());
You can’t perform that action at this time.
0 commit comments