不管页面有多少header,它会执行最后一个,不过是有条件的,例如:
header('Location:http://www.google.cn');
header('Location:http://www.biying.cn');
header('Location:http://www.baidu.com');
这个就会跳到百度
header('Location:http://www.google.cn');echo 'yangyu';
header('Location:http://www.biying.cn');
header('Location:http://www.baidu.com');
这个就会跳到google