php 获取淘宝搜索词 内容
$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);