Worksheet::writeFormula -- Write a formula to the specified row and column (zero indexed).
Synopsis
require_once "Spreadsheet/Excel/Writer.php"; |
void Worksheet::writeFormula
(integer $row, integer $col, string $formula [, mixed $format=0])
Description
Write a formula to the specified row and column (zero indexed). The textual representation of the formula is passed to the parser in Parser.php which returns a packed binary string. Returns 0 : normal termination -2 : row or column out of range
Parameter
integer $row -
Zero indexed row
integer $col -
Zero indexed column
string $formula -
The formula text string
mixed $format -
The optional XF format
Note
This function can not be called statically