When using crul to capture content. When using crul to capture content. I found that the number of intercepted content is small. Can be entered normally. Once the content is intercepted. Only Array (); is displayed .. Why .. In addition, I want to crawl tables. . No features .. Solution ~~~ When using crul to capture content.
When using crul to capture content. I found that the number of intercepted content is small. Can be entered normally. Once the content is intercepted. Only Array (); is displayed .. Why .. In addition, I want to crawl tables. . No features .. Solution ~~~ Share:
------ Solution --------------------
$ S = your string
Preg_match_all ('# \ S * . + \ S * . + \ S * (. +). + ([^ <] +) \ S * # isU ', $ s, $ m );
Print_r ($ m); // $ m [1] is the name array, and $ m [2] is the score array.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service