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 Jerry Stuckle on 11/26/05 17:41

Geoff Berrow wrote:
> Message-ID: <8rWdnQT4IpqZOBreRVnyvQ@pipex.net> from Oliver Saunders
> contained the following:
>
>
>>$str{} is deprecated
>>$str[] was deprecated but is now undeprecated
>
>
> Crazy. I always liked the idea of keeping array elements and string
> elements separate - with novices having a hard enough time understanding
> arrays as it is, any degree of separation is a good thing.
>
> I foresee more furrowed brows in my classroom.
>

Geoff,

I think I'll have just the opposite effect. Basically it's handing a
string as an array of char, similar to C and C++.

Using the {} syntax has been quite confusing to my PHP students - why
have a special syntax just for strings? Whereas the [] syntax of C and
C++ has made understanding both strings and arrays easier for those
students.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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