PEAR Manual
Prev |  | Next

# Worksheet::write

Worksheet::write -- Map to the appropriate write method acording to the token recieved.

## Synopsis

    require_once "Spreadsheet/Excel/Writer.php";

``void Worksheet::write` (integer $row, integer $col, mixed $token [, mixed $format=0])`

## Description

Map to the appropriate write method acording to the token recieved.

## Parameter

- `integer $row` - The row of the cell we are writing to

- `integer $col` - The column of the cell we are writing to

- `mixed $token` - What we are writing

- `mixed $format` - The optional format to apply to the cell

## Note

This function can not be called statically.

## Example

Example 37-1. Using write()

Prev | Home | Next
Worksheet::setPrintScale | Up | Worksheet::writeNumber