previousWorksheet::write (Previous) (Next) Worksheet::writeStringnext

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Worksheet::writeNumber

Worksheet::writeNumber – Write a double to the specified row and column (zero indexed).

Synopsis

require_once "Spreadsheet/Excel/Writer.php";

void Worksheet::writeNumber ( integer $row , integer $col , float $num , mixed $format=0 )

Description

Write a double to the specified row and column (zero indexed). An integer can be written as a double. Excel will display an integer. $format is optional. Returns 0 : normal termination -2 : row or column out of range

Parameter

  • integer $row - Zero indexed row

  • integer $col - Zero indexed column

  • float $num - The number to write

  • mixed $format - The optional XF format

Note

This function can not be called statically.

Example

Using writeNumber()

<?php

?>
previousWorksheet::write (Previous) (Next) Worksheet::writeStringnext

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.