You are here

public function PHPExcel_Calculation_Token_Stack::last in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Token/Stack.php \PHPExcel_Calculation_Token_Stack::last()

* Return an entry from the stack without removing it * *

Parameters

integer $n number indicating how far back in the stack we want to look: * @return mixed

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Token/Stack.php, line 100

Class

PHPExcel_Calculation_Token_Stack
PHPExcel_Calculation_Token_Stack

Code

public function last($n = 1) {
  if ($this->_count - $n < 0) {
    return NULL;
  }
  return $this->_stack[$this->_count - $n];
}