判断是否POST提交

if(strtolower($_SERVER['REQUEST_METHOD']) == 'post'){}  //判断是否POST提交
原文地址:https://www.cnblogs.com/finnlee/p/5314638.html