integer
$str[42]
自 PHP 5.4 起,字符串偏移量必须是整数或类整数字符串。 由于使用字符串作为字符串偏移量被认为是不良做法,所以检查时也会报告此类用法。
有关详细信息,请参阅 String access and modification by character (php.net)。