You are here

private static function PHPExcel_Reader_Excel5::_UTF8toExcelDoubleQuoted in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php \PHPExcel_Reader_Excel5::_UTF8toExcelDoubleQuoted()

* Convert UTF-8 string to string surounded by double quotes. Used for explicit string tokens in formulas. * Example: hello"world --> "hello""world" * *

Parameters

string $value UTF-8 encoded string: * @return string

1 call to PHPExcel_Reader_Excel5::_UTF8toExcelDoubleQuoted()
PHPExcel_Reader_Excel5::_getNextToken in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Fetch next token from binary formula data * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php, line 6658

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private static function _UTF8toExcelDoubleQuoted($value) {
  return '"' . str_replace('"', '""', $value) . '"';
}