<?php /** * Copyright (c) 2018. * Author: Igor Barkov <lopar.4ever@gmail.com> * Project name: Battles-Game */ class input { public static function get($name) { return isset($_GET[$name]) ? $_GET[$name] : null; } public static function post($name) { return isset($_POST[$name]) ? $_POST[$name] : null; } }