Wednesday, November 16. 2005Time to say Good Bye |
CategoriesRumbling PlanetHiring the Right Skills - Anna Filina
Wednesday, Jun 19. 2013 Hear, hear - Mike's sudden inspirations Tuesday, Jun 18. 2013 Packing a Symfony full-stack Framework Application in one File -- Bootstrapping - Fabien Potencier Tuesday, Jun 18. 2013 My Fresh Meat© 2005 |
So now we have no way?
Perhaps because of Unicode? or what?
- Davey
well yes, we *thought* $string[0] was already deprecated, but actually its usage was only discouraged in the manual.
The PHP developers who met in Paris last week have decided to get rid of $string{0} in favour of a single array/string index operator.
To be clear, PHP-5.1 will throw E_STRICT on $string{0} but stays calm on $string[0] and PHP-6 is meant to be $string{0} syntax free.
The idea of not having to type out "substr" is so appealing.
$str[3, 2] = 'replace characters 3-5 with this string (start = 3, length = 2)';
$str[5] = 'a';
too