When curl collects web page data, preg_match_all() in the for loop can only obtain the first two pieces of data.
Amy_烊
Amy_烊 2018-11-16 10:10:34
0
1
882

1.png2.png

get() can get the data. When you get to preg_match_all, you can only get the first two items. The rest will show that there is no record yet. If you modify $i Starting from the third item, only the first two are obtained, so the third item has data, but preg_match_all cannot be obtained in the loop

Amy_烊
Amy_烊

reply all(1)
Amy_烊

Various great gods have appeared, please help analyze it. Baidu and Google can’t find similar problems, so it’s helpful for the time being

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!