As of PHP 5.4 string offsets have to either be integers or integer-like strings. Inspection is extended to all strings since it's a bad practice to use strings as an index of string.

http://www.php.net/manual/en/language.types.string.php