03.02.2014 Views

php|architect's Guide to Web Scraping with PHP - Wind Business ...

php|architect's Guide to Web Scraping with PHP - Wind Business ...

php|architect's Guide to Web Scraping with PHP - Wind Business ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

T i d y Extension ” 95<br />

Array<br />

(<br />

[0] => Array<br />

(<br />

[0] => line 12 column 1 - Warning: element not<br />

empty or not closed<br />

[line] => 12<br />

[1] => 12<br />

[column] => 1<br />

[2] => 1<br />

[type] => Warning<br />

[3] => Warning<br />

[message] => element not empty or not closed<br />

[4] => element not empty or not closed<br />

)<br />

)<br />

*/<br />

?><br />

The tidy extension also provides a way <strong>to</strong> get at the number of warnings and errors<br />

that are encountered <strong>with</strong>out requiring that you manually parse the error buffer. U n -<br />

fortunately and rather oddly, this is only supported in the procedural API. H o w e v e r,<br />

adding it <strong>to</strong> the object-oriented API by subclassing the tidy class is fairly simple. Examples<br />

of both are shown below.<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!