Home  >  Q&A  >  body text

Can anyone give me some ideas on these two questions? Urgent.

13.png15.png14.pngThe word.txt below the first question contains a lot of entries. For the second question, I feel like I need to use curl. Please help me

水色水色2242 days ago976

reply all(2)I'll reply

  • 秋香姐家的小书童

    秋香姐家的小书童2018-09-25 11:54:24

    1. They are all four words. There is a space after each word. The last word is the same. You can use PHP to read these and then make separators based on the last word to divide each line of text into a two-dimensional array. The words are separated by spaces. Become How to compare these words in three-dimensional arrays depends on how you think

    2. The second question is correct. Use CURL to obtain the results in the search engine. Use regular expressions to extract the content. You can write it yourself. I can only provide ideas here


    reply
    0
  • 水色

    Hello, can you tell me how to write the regular expression for the second question? . I kept making mistakes while writing for a long time

    水色 · 2018-09-25 12:25:30
    水色

    I found a category online. Okay.

    水色 · 2018-09-25 12:48:40
  • Cancelreply