--
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to professional-p...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Writing to an out of range offset pads the string with spaces. Non-integer types are converted to integer. Illegal offset type emits E_NOTICE
. Negative offset emits E_NOTICE
in write but reads empty string. Only the first character of an assigned string is used. Assigning empty string assigns NULL byte.
So any string offset to access character need to be integer else php will convert non-integer to integer that is 0. Hence will return first character
Regards,
Vishal