$scalar{index} syntax
| From: | Brad Bulger | Date: | Wed, 11 Dec 2002 05:09:42 +0000 |
| Subject: | $scalar{index} syntax | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-92329@lists.php.net to get a copy of this message | ||
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?
thanks