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

@ -6,7 +6,7 @@ $exists = false;
$depth2_ca_id = substr($ca_id, 0, 2);
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '${depth2_ca_id}%' and length(ca_id) = 4 and ca_use = '1' order by ca_order, ca_id ";
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '{$depth2_ca_id}%' and length(ca_id) = 4 and ca_use = '1' order by ca_order, ca_id ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
if (preg_match("/^{$row['ca_id']}/", $ca_id))