static function cli_write($str)
    {
        if (gettype($str) != 'string') {
            return false;
        }

        $stdout = fopen('php://stdout', 'w');

        return fwrite($stdout, $str);
    }