You are here: Re: No more access to characters in strings in PHP 6? « PHP Programming Language « IT news, forums, messages
Re: No more access to characters in strings in PHP 6?

Posted by Andy Hassall on 11/02/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация