> Yes, I think that for strings we should limit it to ranges
> like $foo{4..6}, and it would be neat if we for arrays could
> do $foo[4..6]. ":" might be just as well as "..". It is more
> intuitive with ".." I think, but I also kind of like having a
> single character.

4:6 is more of a soccer result than intuitive ;)

should return array(item)
returns array of items $a to $n

it seems obvious to implement this for arrays, array_slice() and 
substr() both have identical syntax.
you could easily cut bigger arrays into smaller ones then, without hazzle.

any opinions about array slicing in the language itself? IMO all points 
discussed for string slicing also apply to array slicing


PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to