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?

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 2014-06-15 01:25 +0000
Organization A noiseless patient Spider
Message-ID <XnsA34CD9DAF617Ddougmilmaccom@78.46.70.116> (permalink)
References <tvhj7dle16f3$.ro2c41zfpmyn.dlg@40tude.net>

Show all headers | 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