battles/classes/input.php
2018-03-30 22:28:22 +03:00

17 lines
342 B
PHP

<?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;
}
}