On Tue, 10 Dec 2002, Brad Bulger wrote:

> 
> trying to fix bugs in some PEAR code, i noticed the person used a way
> of getting at the individual characters in a string:
> 
> $string{2} === substr($string,2,1)
> 
> is that old syntax or something? is there any reason to expect it to work
> in future versions?

This is the recommended systax. (over $string[2]).

Derick

-- 

-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
-------------------------------------------------------------------------


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to