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]
|