* Project name: Battles-Game */ class input { public static function get($name) { $var = rtrim(filter_input(INPUT_GET,$name)); if (isset($var) AND !empty($var)) return $var; else return null; } public static function post($name) { $var = rtrim(filter_input(INPUT_POST,$name)); if (isset($var) AND !empty($var)) return $var; else return null; } }