Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #13854

Re: What is the purpose of "&" in this code?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Doug Miller <doug_at_milmac_dot_com@example.com>
Newsgroups comp.lang.php
Subject Re: What is the purpose of "&" in this code?
Date Sun, 15 Jun 2014 01:25:52 +0000 (UTC)
Organization A noiseless patient Spider
Lines 11
Message-ID <XnsA34CD9DAF617Ddougmilmaccom@78.46.70.116> (permalink)
References <tvhj7dle16f3$.ro2c41zfpmyn.dlg@40tude.net>
Injection-Date Sun, 15 Jun 2014 01:25:52 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="5db306c38675df2e8414a2b6b4fef7be"; logging-data="1248"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mE57ZtbeKePFJvOPynmPd"
User-Agent Xnews/2006.08.24
Cancel-Lock sha1:ged5HJmXvNadaOxJaYQJpM1HAwI=
Xref csiph.com comp.lang.php:13854

Show key headers only | View raw


richard <noreply@example.com> wrote in news:tvhj7dle16f3$.ro2c41zfpmyn.dlg@40tude.net:

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

RTFM, RtS.

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

What is the purpose of "&" in this code? richard <noreply@example.com> - 2014-06-14 11:08 -0400
  Re: What is the purpose of "&" in this code? Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-14 17:57 +0200
  Re: What is the purpose of "&" in this code? bill <william@TechServSys.com> - 2014-06-14 14:32 -0400
  Re: What is the purpose of "&" in this code? Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-14 20:04 +0000
  Re: What is the purpose of "&" in this code? Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-06-15 01:25 +0000

csiph-web