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


Groups > comp.lang.php > #4102

Re: implode() order?

Content-Type text/plain; charset="ISO-8859-1"
Message-ID <1673804.JFYEL58v44@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Organization PointedEars Software (PES)
Date Tue, 20 Dec 2011 02:59:19 +0100
User-Agent KNode/4.4.11
Content-Transfer-Encoding 7Bit
Subject Re: implode() order?
Newsgroups comp.lang.php
References <23705179.475.1324325630088.JavaMail.geo-discussion-forums@yqgn9> <jco6gd$96e$1@news.albasani.net> <10925269.424.1324326983924.JavaMail.geo-discussion-forums@yqnd19> <jco9hb$ghc$1@dont-email.me> <jcoetq$qod$1@news.albasani.net>
Followup-To comp.lang.php
MIME-Version 1.0
Lines 34
NNTP-Posting-Date 20 Dec 2011 02:59:19 CET
NNTP-Posting-Host 194777ea.newsspool4.arcor-online.net
X-Trace DXC=38YD]4]e]fhIkjb;<8iR=a4IUK<Cl32<a4Fo<]lROoRa8kF<OcfhCOk0bK78=TXjmnDZm8W4\YJNl;?f@h5gMfblGaaV0`_>WCae57HgkMGGfi
X-Complaints-To usenet-abuse@arcor.de
Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!feed.ac-versailles.fr!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:4102

Followups directed to: comp.lang.php

Show key headers only | View raw


Thomas Mlynarczyk wrote:

> Jerry Stuckle schrieb:
>> Mike wrote:
>>> Thanks... suppose the keys are not in a sortable order, like this:
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> $toImplode = Array(
>>>    "second" = "Second",
>>>    "fourth" = "Fourth",
>>>    "third" = "Third",
>>>    "first" = "First"
>>> );
> 
>> Use usort() and define your own comparison function.
> 
> Rather u*k*sort() for sorting by keys:
> http://de3.php.net/manual/en/function.uksort.php

See the marked part.

You should also post the (manual) URI that works best for the person using 
it, which would be

  <http://php.net/uksort>

in this case.


PointedEars
-- 
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
  -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)

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


Thread

implode() order? Mike <mpearl1@gmail.com> - 2011-12-19 12:13 -0800
  Re: implode() order? Mike <mpearl1@gmail.com> - 2011-12-19 12:15 -0800
  Re: implode() order? Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2011-12-19 21:23 +0100
    Re: implode() order? Mike <mpearl1@gmail.com> - 2011-12-19 12:36 -0800
      Re: implode() order? Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-19 16:15 -0500
        Re: implode() order? Mike <mpearl1@gmail.com> - 2011-12-19 13:30 -0800
        Re: implode() order? Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2011-12-19 23:47 +0100
          Re: implode() order? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-20 02:59 +0100
            Re: implode() order? Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-19 22:34 -0500
      Re: implode() order? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-20 02:55 +0100

csiph-web