<php $str = 'ippr_z2C$qAzdH3FAzdH3Fojgojg_z&e3Bf5f5_z&e3Bv54AzdH3FrAzdH3Fda8a8a8nAzdH3Fda8a8a8n8m9bdc-8a0abn8cdb_z&e3B3r2'; function uncomplie($k){ $c = array('_z2C$q','_z&e3B','AzdH3F'); $d = array('w'=--> "a",'k'=> "b",'v'=> "c",'1'=> "d",'j'=> "e",'u'=> "f",'2'=> "g",'i'=> "h",'t'=> "i",'3'=> "j",'h'=> "k",'s'=> "l",'4'=> "m",'g'=> "n","5"=> "o",'r'=> "p",'q'=> "q","6"=> "r",'f'=> "s",'p'=> "t","7"=> "u",'e'=> "v",'o'=> "w","8"=> "1",'d'=> "2",'n'=> "3","9"=> "4",'c'=> "5",'m'=> "6","0"=> "7",'b'=> "8",'l'=> "9",'a'=> "0",'_z2C$q'=> ":",'_z&e3B'=> ".",'AzdH3F'=> "/"); if(!$k || strpos($k, "http")) return $k; $j = $k; foreach ($c as $value) { $j = str_replace($value,$d[$value],$j); } $arr = str_split($j); foreach ($arr as $k=>$v) { if(preg_match('/^[a-w\d]+$/',$v)) $arr[$k] = $d[$v]; } return implode('',$arr); } print_r(uncomplie($str));
本文为原创:转载请著名解析百度图片搜索json objURL图片链接