PHP 문자열 내 변수 사용 중 Deprecated 사항 수정

PHP 8.2 문자열내 변수 ${var} -> {$var}
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
This commit is contained in:
kit rio
2022-05-26 16:58:07 +09:00
parent b5a8ce065f
commit aaf5454144
5 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ for($i=1; $res=sql_fetch_array($qry); $i++)
$data = array_merge(array($headers), $rows);
$excel->setActiveSheetIndex(0)->getStyle( "A1:${last_char}1" )->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID)->getStartColor()->setARGB($header_bgcolor);
$excel->setActiveSheetIndex(0)->getStyle( "A1:{$last_char}1" )->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID)->getStartColor()->setARGB($header_bgcolor);
$excel->setActiveSheetIndex(0)->getStyle( "A:$last_char" )->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER)->setWrapText(true);
foreach($widths as $i => $w) $excel->setActiveSheetIndex(0)->getColumnDimension( column_char($i) )->setWidth($w);
$excel->getActiveSheet()->fromArray($data,NULL,'A1');