From d383bc356cddf1391080d92d94edb7b0418017d1 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Wed, 20 Dec 2017 00:20:16 +0900 Subject: [PATCH] Restore reference to calculation engine --- docs/topics/accessing-cells.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/topics/accessing-cells.md b/docs/topics/accessing-cells.md index 503ebc5e..6d100ebe 100644 --- a/docs/topics/accessing-cells.md +++ b/docs/topics/accessing-cells.md @@ -239,20 +239,19 @@ using the `getValue()` method. ``` php // Get the value fom cell A1 -$cellValue = $spreadsheet->getActiveSheet()->getCell('A1') - ->getValue(); +$cellValue = $spreadsheet->getActiveSheet()->getCell('A1')->getValue(); ``` This will retrieve the raw, unformatted value contained in the cell. If a cell contains a formula, and you need to retrieve the calculated value rather than the formula itself, then use the cell's -`getCalculatedValue()` method. This is further explained in . +`getCalculatedValue()` method. This is further explained in +[the calculation engine](./calculation-engine.md). ``` php // Get the value fom cell A4 -$cellValue = $spreadsheet->getActiveSheet()->getCell('A4') - ->getCalculatedValue(); +$cellValue = $spreadsheet->getActiveSheet()->getCell('A4')->getCalculatedValue(); ``` Alternatively, if you want to see the value with any cell formatting @@ -288,7 +287,7 @@ $cellValue = $spreadsheet->getActiveSheet()->getCellByColumnAndRow(2, 5)->getVal ``` If you need the calculated value of a cell, use the following code. This -is further explained in . +is further explained in [the calculation engine](./calculation-engine.md). ``` php // Get the value fom cell A4