Обращение к элементу используя устаревший синтаксис

This commit is contained in:
origami11 2021-02-21 21:05:39 +03:00
parent b467451c9e
commit f570da257d

View file

@ -18,7 +18,7 @@ class Tools_String {
$res[] = static::strToArray(implode(',', $subarr[$in_subarr]));
$in_subarr--;
}
} elseif ($tok{0} === '{') { // we're inside a new sub-array
} elseif ($tok[0] === '{') { // we're inside a new sub-array
if ('}' !== substr($tok, -1, 1)) {
$in_subarr++;
// if sub-array has more than one element