PHP 7.1 string -n

PHP 7.1부터 문자열에 -n을 사용해서 특정 문자를 다루거나 변경하는 게 가능하다. $a = “100KB”; echo $a[-2].PHP_EOL; $a[-2] = “M”; echo $a; 결과는 다음과 같다. K 100MB