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

Home » Imported messages » comp.lang.php » What is the purpose of "&" in this code?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: What is the purpose of "&" in this code? [message #186111 is a reply to message #186110] Sat, 14 June 2014 15:57 Go to previous messageGo to previous message
Christoph Michael Bec is currently offline  Christoph Michael Bec
Messages: 207
Registered: June 2013
Karma:
Senior Member
richard wrote:

> foreach($master as &$ma)
> $tmp[] = &$ma["date"];
> array_multisort($tmp, $master);
> foreach($master as &$ma)
> echo $ma["date"]."<br/>";

See <http://www.php.net/manual/en/language.references.php> and
<http://www.php.net/manual/en/control-structures.foreach.php>.

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: function for preserving special characters?
Next Topic: How to loop through the dates?
Goto Forum:
  

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

Current Time: Fri Nov 22 05:47:09 GMT 2024

Total time taken to generate the page: 0.13077 seconds