function writeRow($row, $col, $val, $format = null)
    {
        $retval = '';
        if (is_array($val)) {
            foreach ($val as $v) {
                if (is_array($v)) {
                    $this->writeCol($row, $col, $v, $format);
                } else {
                    $this->write($row, $col, $v, $format);
                }
                $col++;
            }
        } else {
            $retval = new PEAR_Error('$val needs to be an array');
        }
        return($retval);
    }
function writeRow($row, $col, $val, $format = null)
    {
        $retval = '';
        if (is_array($val)) {
            foreach ($val as $v) {
                if (is_array($v)) {
                    $this->writeCol($row, $col, $v, $format);
                } else {
                    $this->write($row, $col, $v, $format);
                }
                $col++;
            }
        } else {
            $retval = new PEAR_Error('$val needs to be an array');
        }
        return($retval);
    }
function writeRow ( $ row , $ col , $ val , $ format = null ) { $ retval = '' ; if ( is_array ( $ val ) ) { foreach ( $ val as $ v ) { if ( is_array ( $ v ) ) { $ this -> writeCol ( $ row , $ col , $ v , $ format ) ; } else { $ this -> write ( $ row , $ col , $ v , $ format ) ; } $ col ++ ; } } else { $ retval = new PEAR_Error ( '$val needs to be an array' ) ; } return ( $ retval ) ; }
Write an array of values as a row

@access public
@param integer $row    The row we are writing to
@param integer $col    The first col (leftmost col) we are writing to
@param array   $val    The array of values to write
@param mixed   $format The optional format to apply to the cell
@return mixed PEAR_Error on failure
Write an array of values as a row