You are here

public static function PHPExcel_Calculation_TextData::CONCATENATE in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php \PHPExcel_Calculation_TextData::CONCATENATE()

* CONCATENATE * *

Return value

string

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php, line 166

Class

PHPExcel_Calculation_TextData
PHPExcel_Calculation_TextData

Code

public static function CONCATENATE() {

  // Return value
  $returnValue = '';

  // Loop through arguments
  $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
  foreach ($aArgs as $arg) {
    if (is_bool($arg)) {
      if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
        $arg = (int) $arg;
      }
      else {
        $arg = $arg ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE();
      }
    }
    $returnValue .= $arg;
  }

  // Return
  return $returnValue;
}