Check documentation for the latest version of dhtmlxSuite getValue DHTMLX Docs

getValue

Gets the value of the cell. If the value is set as a formula, the method returns the formula text.

Return value

  • (string) the cell value

Example

$cell = new SpreadSheetCell($res, "1","B1", $db_prefix);
 
$cell->setValue("=(8+10)/2");
 
$parsedValue = $cell->getValue();     // ->  (8+10)/2
$calcValue   = $cell->getCalculatedValue(); // -> 9

See also: setValue, getCalculatedValue

Back to top