search

Home  >  Q&A  >  body text

How does PHP collect the specified content in the specified URL?

For example, the URL is: http://baidu.com and the source code of the URL contains: "id":"3855877728439071035","nid. I want to collect the middle part of the code: 3855877728439071035. Then my PHP code needs to be How to write it

剑非道剑非道2055 days ago855

reply all(1)I'll reply

  • 何戚

    何戚2019-05-10 10:39:26

    Regular expression

    reply
    1
  • Cancelreply