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

Home » Imported messages » comp.lang.php » error message I don understand
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: error message I don understand [message #174903 is a reply to message #174897] Sun, 17 July 2011 14:52 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Sun, 17 Jul 2011 11:10:30 +0200, Thomas 'PointedEars' Lahn wrote:

> In the end an oversimplified, wrong explanation. It is a syntactical
> requirement, not a functional one:

> $a = x();

Here you're assigning the return value of the function x() to the
variable $a.

> $a[0] = 42;

Here you're writing to the variable $a (or rather, in this case, to an
element of the array that is variable $a).

Neither of these is trying to assign (write) a value to the return value
of the function call. Whether you call the issue syntactical or not is
just irrelevant and messing about with semantics.

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ouion Movement, Roun Time (Floating Point Time)
Next Topic: [MEMCACHED] Is there a way to get the expiration of a key?
Goto Forum:
  

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

Current Time: Sat Nov 30 06:04:01 GMT 2024

Total time taken to generate the page: 0.04295 seconds