if($REQUEST_METHOD == “POST”){
echo "是POST过来滴";
}elseif($REQUEST_METHOD == “GET”){
echo "是GET过来滴";
}else{
echo "我也不知道怎么过来滴";
}