0

How I can work with DOM in php?

Hi. How I can work with DOM HTML in php? I can use id and class and another elements DOM how I work in js?

20th Jan 2019, 9:19 PM
Sitizen
Sitizen - avatar
1 Answer
+ 2
You can't really select DOM elements using PHP like you can with js, but you can use PHP to write HTML just like you can write it normally, adding classes and id's. You might want to look into PHPQuery if you're trying to manipulate an already existing DOM with PHP
21st Jan 2019, 1:31 AM
Zeke Williams
Zeke Williams - avatar