if(!empty(值) || is_numeric(值)){ } if (isset($post[‘from_type’]) and is_numeric($post[‘from_type’])) { }