src/StreamJsonEncoder.php
protected function write($string, $token)
    {
        if ($this->stream === null) {
            echo $string;
        } else {
            $callback = $this->stream;
            $callback($string, $token);
        }

        $this->bytes += strlen($string);
    }
protected function write($string, $token)
    {
        if ($this->stream === null) {
            echo $string;
        } else {
            $callback = $this->stream;
            $callback($string, $token);
        }

        $this->bytes += strlen($string);
    }
protected function write ( $ string , $ token ) { if ( $ this -> stream === null ) { echo $ string ; } else { $ callback = $ this -> stream ; $ callback ( $ string , $ token ) ; } $ this -> bytes += strlen ( $ string ) ; }
Echoes to given string or passes it to the stream callback.
@param string $string The string to output
@param int $token The type of the string
Echoes to given string or passes it to the stream callback .