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

Home » Imported messages » comp.lang.php » Weird behaviour when adding values to associative arrays
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Weird behaviour when adding values to associative arrays [message #177782 is a reply to message #177781] Fri, 20 April 2012 21:43 Go to previous message
JF is currently offline  JF
Messages: 2
Registered: April 2012
Karma:
Junior Member
Il Fri, 20 Apr 2012 23:23:59 +0200, Michael Fesser ha scritto:

> As a leftover from the first foreach loop $house is still a reference to
> the last item of the array. If you then sort the array and run another
> foreach loop with the same $house variable, which still references one
> of the array items ... well, anything can happen.

Now everything's clear. Thank you!

Eugenio
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: We Need Speakers For MOSC2012
Next Topic: php include, function, ...
Goto Forum:
  

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

Current Time: Sat Oct 05 04:20:29 GMT 2024

Total time taken to generate the page: 0.05170 seconds