FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Hmm..why doesnt this work?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Hmm..why doesnt this work? [message #176082 is a reply to message #176081] Tue, 22 November 2011 17:57 Go to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
The Natural Philosopher wrote:
> Tony Mountifield wrote:
>> In article <jaglt2$k0v$1(at)news(dot)albasani(dot)net>,
>> The Natural Philosopher <tnp(at)invalid(dot)invalid> wrote:
>>> The point remains. Why does mysql_fetch_assoc(.....)['name'] return a
>>> SYNTAX error?
>>
>> I expect it's just because the creators of PHP just didn't think of it.
>> I can't find any comment on the topic in the only PHP manual.
>>
>> Unlike C and Perl, which were actually DESIGNED and have a regular,
>> orthogonal and consistent syntax, PHP appears to have just grown like
>> Topsy, without any consideration of consistency or regularity (at least
>> in the early days, but then you have an installed base to remain
>> compatible with, so it's hard to fix the inconsistencies).
>>
>
> Now THAT is a perfectly reasonable explanation..
>
>
> But implementing that would not actually upset anything that exists:
> merely make something that didn't work before (and arguably should)
> work..now!
>
> (or in some future release).
>
>
>
>> Cheers
>> Tony
Ah..it looks like I am not the only one to bitch, and, indeed, it HAS
been fixed in later releases...

https://wiki.php.net/rfc/functionarraydereferencing

looks like 5.4 or later has this..

sadly even latest Debian stable is only 5.3
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get client mac address in PHP ..?
Next Topic: Thumbnails with PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 06:11:46 GMT 2024

Total time taken to generate the page: 0.31383 seconds