Re: sobre sort

From: Date: Wed, 08 Nov 2000 21:58:54 +0000
Subject: Re: sobre sort
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-3513@lists.php.net to get a copy of this message
"Juan Paulo Soto C." escribió: > > Buenas .. > > Tengo la siguiente consulta como puedo ordenar un arreglo de arreglos, > intente con la funcion sort, > y me entrega el sgte: > error > Wrong datatype in sort() call > > el arreglo es asi : > > $xx = array( > "nombre_uno" => array( > "edad" => "21", > "telefono" => "232323", > ), > > "nombre_2" => array( > "edad" => "12", > "telefono" => "333333", > ) > ); > > Lo que quero hacer es ordenarlo por nombre... > > Como podria hacer eso ... > tengo el php 3.0.16 <? ksort($xx); reset($xx); ?> Si lo quieres en orden inverso: <? krsort($xx); reset($xx); ?> Saludos. Àngel

« previous php.general.es (#3513) next »