Hi, $str{} was considered a best practice for a while so as you can see via Google Code Search it's been used quite a bit. I take the blame for introducing it with the intention to not only create a better separation between arrays and string offsets but by also then allowing for a cleaner implementation for string offsets. Unfortunately I never delivered that cleaner implementation esp. as there didn't seem a huge benefit
I don't have strong feelings either way esp. as moving from $str{} to $str[] is scriptable but given that so many people have used it and there are benefits to separating the two (it also resolves an ambiguity) I'd like to put another option out there which is to try and see if we can actually follow through on original intentions of also delivering technical benefit in addition to the syntax separation. Andi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php