static function input($h = '') { if (!self::$in) { self::$in = fopen('php://stdin', 'r'); } if ($h) { self::output($h); } return trim(fread(self::$in, self::$buffer_size)); }