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
)