FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » implode() order?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: implode() order? [message #176301 is a reply to message #176299] Mon, 19 December 2011 22:47 Go to previous messageGo to previous message
Thomas Mlynarczyk is currently offline  Thomas Mlynarczyk
Messages: 131
Registered: September 2010
Karma:
Senior Member
Jerry Stuckle schrieb:
> On 12/19/2011 3:36 PM, 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

Greetings,
Thomas

--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: implode() order?
Next Topic: FastCGI + ignore_user_abort
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 22:11:52 GMT 2024

Total time taken to generate the page: 0.04867 seconds