调试代码是极好的 ini_set("display_errors", "On"); error_reporting(E_ALL); 两个坑: 1)global 2)in_array 不能判断key=》value这种情况