You are here

public static function PHPExcel_Calculation_Functions::flattenSingleValue in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php \PHPExcel_Calculation_Functions::flattenSingleValue()

* Convert an array to a single scalar value by extracting the first element * *

Parameters

mixed $value Array or scalar value: * @return mixed

199 calls to PHPExcel_Calculation_Functions::flattenSingleValue()
PHPExcel_Calculation::_processTokenStack in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php
PHPExcel_Calculation::_showValue in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php
* Format details of an operand for display in the log (based on operand type) * *
PHPExcel_Calculation_Database::__fieldExtract in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Database.php
* __fieldExtract * * Extracts the column ID to use for the data field. * * @access private *
PHPExcel_Calculation_DateTime::DATE in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php
* DATE * * The DATE function returns a value that represents a particular date. * * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date * format of your regional settings. PHPExcel does not change…
PHPExcel_Calculation_DateTime::DATEDIF in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php
* DATEDIF * *

... See full list

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php, line 662

Class

PHPExcel_Calculation_Functions
PHPExcel_Calculation_Functions

Code

public static function flattenSingleValue($value = '') {
  while (is_array($value)) {
    $value = array_pop($value);
  }
  return $value;
}