|
Posted by Andy Hassall on 11/16/97 11:32
On 18 Nov 2005 17:40:34 -0800, "Chung Leong" <chernyshevsky@hotmail.com> wrote:
>Just saw a message in pl.comp.lang.php, which states that the following
>message has appeared in the PHP CVS snapshot:
>
>Usage of {} to access string offsets is deprecated and will be removed
>in PHP 6
>
>What do you think of that?
So, both [] and {} access is deprecated?
http://uk.php.net/string
"String access and modification by character
Characters within strings may be accessed and modified by specifying the
zero-based offset of the desired character after the string in curly braces.
Note: For backwards compatibility, you can still use array-brackets for the
same purpose. However, this syntax is deprecated as of PHP 4. "
Or have they changed their minds and the (more sensible) array-like access is
back as the preferred method?
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|