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


Groups > comp.lang.php > #13850

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

From bill <william@TechServSys.com>
Newsgroups comp.lang.php
Subject Re: What is the purpose of "&" in this code?
Date 2014-06-14 14:32 -0400
Organization Aioe.org NNTP Server
Message-ID <lni4g1$1ei$1@speranza.aioe.org> (permalink)
References <tvhj7dle16f3$.ro2c41zfpmyn.dlg@40tude.net>

Show all headers | View raw


On 6/14/2014 11:08 AM, richard wrote:
>
> foreach($master as &$ma)
>      $tmp[] = &$ma["date"];
> array_multisort($tmp, $master);
> foreach($master as &$ma)
>      echo $ma["date"]."<br/>";
>

http://www.php.net/manual/en/language.references.pass.php

Back to comp.lang.php | Previous | Next — Previous in thread | Next 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