Home  >  Q&A  >  body text

Please tell me how to get the value of element node in php like js

For example, js can get the text or attributes of a certain element node and modify it, can php do it?

水东水南水东水南2252 days ago1350

reply all(2)I'll reply

  • jesse

    jesse2018-09-07 18:22:38

    PHP is a server-side language, not a browser-side language. It is better at data interaction and processing, while JS is a front-end language and is good at changing the page structure!

    reply
    0
  • 水东水南

    Hello, thank you very much for your reply, but today I found a way to get the content of element nodes through php, such as

    I am the content of div
    . Just like js.

    水东水南 · 2018-09-07 22:36:58
  • Cancelreply