public function in($format = '')
    {
        if (empty($format)) {
            $line = fgets(STDIN);
        } else {
            $line = fscanf(STDIN, $format . PHP_EOL, $line);
        }

        return trim($line);
    }
public function in($format = '')
    {
        if (empty($format)) {
            $line = fgets(STDIN);
        } else {
            $line = fscanf(STDIN, $format . PHP_EOL, $line);
        }

        return trim($line);
    }
public function in ( $ format = '' ) { if ( empty ( $ format ) ) { $ line = fgets ( STDIN ) ; } else { $ line = fscanf ( STDIN , $ format . PHP_EOL , $ line ) ; } return trim ( $ line ) ; }
Reads a user input
@param string $format
@return string
Reads a user input