|
Posted by Chung Leong on 11/01/72 11:32
Ewoud Dronkert wrote:
> Chung Leong wrote:
> > Usage of {} to access string offsets is deprecated and will be removed
> > in PHP 6
> >
> > What do you think of that?
>
> That would be a shocker, unless they intend to go back to array-type
> indexing with square brackets (deprecated as of v4). I must admit I don't
> use it very often, but it's kind of a standard feature for any language,
> isn't it? It would be a drag to always have to use substr(,,1).
What I worry about is that they'll make text string a closed structure.
If strings are to be encoded in UTF-8 internally, then they might need
to remove character-level access. I must say I really dislike the
direction PHP is heading.
Navigation:
[Reply to this message]
|