public function writeVariable($varname)
    {
        try {
            $this->getStream()->write('$' . $varname);
        } catch (StreamException $e) {
            $msg = "An error occured while writing a variable reference.";
            throw new StreamAccessException($msg, $this, 0, $e);
        }
    }
public function writeVariable($varname)
    {
        try {
            $this->getStream()->write('$' . $varname);
        } catch (StreamException $e) {
            $msg = "An error occured while writing a variable reference.";
            throw new StreamAccessException($msg, $this, 0, $e);
        }
    }
public function writeVariable ( $ varname ) { try { $ this -> getStream ( ) -> write ( '$' . $ varname ) ; } catch ( StreamException $ e ) { $ msg = "An error occured while writing a variable reference." ; throw new StreamAccessException ( $ msg , $ this , 0 , $ e ) ; } }
Write a variable reference in the current stream.

@param string $varname The name of the variable reference to write.
@throws StreamAccessException If an error occurs while writing the variable reference.
Write a variable reference in the current stream .