🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #485

Re: PHP:ordenamiento array

#485
From: +mArkO+
Date: Thu, 22 May 2008 05:13
54 lines
3049 bytes
si la habia visto antes, pero no cache como usarla en este caso



"Jos� Miguel Santib��ez" <jms.nospam@nivel5.cl> escribi� en el mensaje 
news:Xns9AA6575ABDFjmsnews@201.238.250.229...
> En el cap�tulo anterior (news:g12ptu$oaa$1@news.nivel5.cl), "+mArkO+"
> <kitim@porta.com> dijo:
>
>> tengo un array llamado lista_correo
>>
>> Array
>> (
>>     [0] => Array([0] => correo1.56  [1] => hotmail.com)
>>     [1] => Array([0] => correo2       [1] => gmail.com)
>>     [2] => Array([0] => email           [1] => hotmail.com)
>>     [3] => Array([0] => correo_valido[1] => yahoo.com)
>>     [4] => Array([0] => correo-mio   [1] => yeah.info)
>>     [5] => Array([0] => yeahhhh       [1] => qmail.com)
>>     [6] => Array([0] => correo1m     [1] => gmail.com)
>>     [7] => Array([0] => mail            [1] => abc.def )
>>     [8] => Array([0] => jajaja           [1] => jejeje.jiji)
>>     [9] => Array([0] => mmmjsdhhf   [1] => hotmail.com)
>> )
>>
>> el asunto de esto es que deseo ordenarlo por servidor.
>>
>> Array
>> (
>>     [0] => Array( [0] => mail [1] => abc.def)
>>     [1] => Array( [0] => correo1m [1] => gmail.com)
>>     [2] => Array( [0] => correo2  [1] => gmail.com)
>>     [3] => Array( [0] => correo1.56 [1] => hotmail.com)
>>     [4] => Array( [0] => email [1] => hotmail.com)
>>     [5] => Array( [0] => mmmjsdhhf [1] => hotmail.com)
>>     [6] => Array( [0] => jajaja [1] => jejeje.jiji )
>>     [7] => Array( [0] => yeahhhh [1] => qmail.com)
>>     [8] => Array( [0] => correo_valido [1] => yahoo.com)
>>     [9] => Array( [0] => correo-mio [1] => yeah.info)
>> )
>>
>> existe alguna funcion que me permita decirle que ordene segun la 2
>> columna, es decir el servidor de correo
>>
>>
>>
>
> Mira en:
> http://cl.php.net/manual/es/function.array-multisort.php
>
> -- 
> Apoye a la campa�a de alfabetizaci�n y  |       Jose M. Santiba�ez A.
> ordenaci�n de las news, cada post en su |          <jms@nivel5.cl>
> lugar y el lugar exacto para cada post  |        <http://caos.cl/jms> 
Technical Details
Message-ID: <g12vco$ouh$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!news.alt.net!news.kjsl.com!news.nivel5.cl!not-for-mail
References: <g12ptu$oaa$1@news.nivel5.cl> <Xns9AA6575ABDFjmsnews@201.238.250.229>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,4319aabd679d8580
X-Google-Attributes: gid1593cb,domainid0,public,usenet
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!news.alt.net!news.kjsl.com!news.nivel5.cl!not-for-mail
From: "+mArkO+" <kitim@porta.com>
Newsgroups: chile.comp.programacion
Subject: Re: PHP:ordenamiento array
Date: Thu, 22 May 2008 01:13:00 -0400
Organization: Varios
Lines: 56
Message-ID: <g12vco$ouh$1@news.nivel5.cl>
References: <g12ptu$oaa$1@news.nivel5.cl> <Xns9AA6575ABDFjmsnews@201.238.250.229>
NNTP-Posting-Host: pc-236-24-45-190.cm.vtr.net
X-Trace: news.nivel5.cl 1211433178 25553 190.45.24.236 (22 May 2008 05:12:58 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Thu, 22 May 2008 05:12:58 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original