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


Groups > comp.lang.php > #11861

Re: solved

From tony@mountifield.org (Tony Mountifield)
Newsgroups comp.lang.php
Subject Re: solved
Date 2013-11-19 14:48 +0000
Organization Software Insight Ltd., Winchester, UK
Message-ID <l6ftns$g73$1@softins.softins.co.uk> (permalink)
References <93xuovoqvo59.1wcgm8i5gn2hb$.dlg@40tude.net> <1939vbqgxpb1.1ed40enyqnzu1$.dlg@40tude.net> <0.7dbacdb97db2593ac9fc.20131119135002GMT.87bo1gpkl1.fsf@bsb.me.uk>

Show all headers | View raw


In article <0.7dbacdb97db2593ac9fc.20131119135002GMT.87bo1gpkl1.fsf@bsb.me.uk>,
Ben Bacarisse  <ben.usenet@bsb.me.uk> wrote:
> richard <noreply@example.com> writes:
> 
> > <?php
> >
> > $track=$_GET['item'];
> >
> >
> > $asong=$six0[$track][0];
> > $flip=$six0[$track][1];
> >
> > $max=count($six0);
> >
> > $match=0;
> >
> > for ($item=0;$item<=$max;$item++){
> > if ($flip==$six0[$item]['0'])
> >   {if ($six0[$item][2]=$six0[$track][2])
> 
> There's no need to assign something to itself just to test it.

It's not being assigned to itself. The destination is indexed by $item
and the source is indexed by $track.

Cheers
Tony
-- 
Tony Mountifield
Work: tony@softins.co.uk - http://www.softins.co.uk
Play: tony@mountifield.org - http://tony.mountifield.org

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


Thread

array search part 2 richard <noreply@example.com> - 2013-11-18 09:10 -0500
  Re: array search part 2 Christoph Michael Becker <cmbecker69@arcor.de> - 2013-11-18 15:32 +0100
    Re: array search part 2 richard <noreply@example.com> - 2013-11-18 09:59 -0500
  Re: array search part 2 richard <noreply@example.com> - 2013-11-18 09:31 -0500
  Re: array search part 2 Tim Streater <timstreater@greenbee.net> - 2013-11-18 15:05 +0000
    Re: array search part 2 richard <noreply@example.com> - 2013-11-18 11:06 -0500
      Re: array search part 2 Christoph Michael Becker <cmbecker69@arcor.de> - 2013-11-18 17:17 +0100
      Re: array search part 2 "Peter H. Coffin" <hellsop@ninehells.com> - 2013-11-18 11:08 -0600
      Re: array search part 2 Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-11-19 03:11 +0000
      Re: array search part 2 Arno Welzel <usenet@arnowelzel.de> - 2013-11-19 09:27 +0100
    Re: array search part 2 Jerry Stuckle <jstucklex@attglobal.net> - 2013-11-18 13:08 -0500
  Re: array search part 2 richard <noreply@example.com> - 2013-11-18 11:11 -0500
    Re: array search part 2 "J.O. Aho" <user@example.net> - 2013-11-18 19:10 +0100
      Re: array search part 2 Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-18 18:28 +0000
        Re: array search part 2 "J.O. Aho" <user@example.net> - 2013-11-18 20:03 +0100
  solved  (was: array search part 2) richard <noreply@example.com> - 2013-11-18 21:45 -0500
    Re: solved Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-19 13:50 +0000
      Re: solved Scott Johnson <noonehome@chalupasworld.com> - 2013-11-19 06:16 -0800
        Re: solved Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-19 16:29 +0000
          Re: solved Scott Johnson <noonehome@chalupasworld.com> - 2013-11-19 10:57 -0800
      Re: solved tony@mountifield.org (Tony Mountifield) - 2013-11-19 14:48 +0000
        Re: solved Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-19 16:12 +0100
        Re: solved Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-19 16:25 +0000
      Re: solved richard <noreply@example.com> - 2013-11-19 11:51 -0500
        Re: solved Christoph Michael Becker <cmbecker69@arcor.de> - 2013-11-19 18:31 +0100
        Re: solved Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-19 18:15 +0000
    Re: solved Arno Welzel <usenet@arnowelzel.de> - 2013-11-19 17:43 +0100
      Re: solved richard <noreply@example.com> - 2013-11-19 14:41 -0500
        Re: solved "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-11-19 19:52 +0000
        Re: solved Arno Welzel <usenet@arnowelzel.de> - 2013-11-20 16:02 +0100

csiph-web