F
F
fgjcirifb2019-01-29 18:17:24
PHP
fgjcirifb, 2019-01-29 18:17:24

Which is better: a native parser or packages from Github in PHP?

You need to parse HTML. Which is better - to use native DOMDocument, etc., or packages from Github like dom-crawler or didom?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-01-29
@grinat

If speed is important, then regular expressions. If you don’t give a fuck about it, then from the github, because I don’t know how it is now, but before DOMDocument only supported xpath, and in different dom-crawlers you can use the syntax a la jquery to select elements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question