I need to read and parse HTML file inside php code (on server side).
As much as I know, the easiest way to read html for choose nodes and nodes’ childrens, is to use jQueries.
Can I include in php code jQueries for open an HTML file, read it, and return to the php code array object?
Thanks 🙂
I need to read and parse HTML file inside php code (on server side).
Share
You cannot use javascript (jQuery) server side, because it is client side, Browser based.
The easiest way to read and parse HTML is DOMDocument, eg: