How can I extract Chinese characters from this page to an array? Daxia help

Source: Internet
Author: User
How can I extract Chinese characters from this page to an array? How can I extract Chinese characters from this page to an array? Thank you, suggest. taobao. comsug? Extras1 & amp; codeutf-8 & amp; callbackg_ks_suggest_callback & amp; q % E6 % B5 % 8B % E8 % AF % 95 How can I extract Chinese characters on this page to the array? Can you help me?
How can I extract Chinese characters from this page to an array? Thank you.
Http://suggest.taobao.com/sug? Extras = 1 & code = UTF-8 & callback = g_ks_suggest_callback & q = % E6 % B5 % 8B % E8 % AF % 95


------ Solution --------------------
$ S = file_get_contents ('http: // suggest.taobao.com/sug? Extras = 1 & code = UTF-8 & callback = g_ks_suggest_callback & q = % E6 % B5 % 8B % E8 % AF % 95 ');
Preg_match ('/\ {. + \}/', $ s, $ m );
Foreach (json_decode ($ m [0])-> result as $ v ){
$ Arr [] = $ v [0];
}
Print_r ($ arr );

Array
(
[0] => test men and women
[1] => test the ovulation test paper
[2] => Tester
[3] => testing paper early pregnancy
[4] => test banknote
[5] => test skin pen separation
[6] => test skin moisture
[7] => formaldehyde test paper
[8] => test paper
[9] => Test Card
)

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.