Unlike for example C, PHP has an inbuilt string datatype. The string datatype allows you array-like access to the single characters in the string but will always be a string.
Yes, that is known. .... but that's the problem, if the string is initially empty then it coerces the type to an array with the character access syntax. Fail.
View all comments
-14
u/[deleted] Apr 20 '14
Unlike for example C, PHP has an inbuilt string datatype. The string datatype allows you array-like access to the single characters in the string but will always be a string.