Because strings are not arrays. They allow you to find offsets in bytes of letters (which are not necessarily letters in a multibyte character string), using the same syntax for your convenience, but not about that.
Arrays can also have keys and can be sorted. If the strings were full arrays, you could give each letter a key or sort the letters alphabetically using one of the array functions.
In short: a string is not an array, even if the tiny part of their syntax is similar.
Goleztrol
source share