diff --git a/src/Verta.php b/src/Verta.php index f5fd20d..8590676 100755 --- a/src/Verta.php +++ b/src/Verta.php @@ -937,9 +937,9 @@ class Verta extends DateTime { $result = ''; while ($i < $lenghFormat) { - $par = $format{$i}; + $par = $format[$i]; if ($par == '\\') { - $result .= $format{++$i}; + $result .= $format[++$i]; $i++; continue; }