Reply to Re: Sort array for key

Your name:

Reply:


Posted by Franz Marksteiner on 02/01/08 13:16

Kovu wrote:
> Hi, I have the next problem. I want to sort the array for the key,
> using a function. I have been looking for a function to operate with
> arrays, but I haven't found anything.
>
> Ej:
>
> Array
> (
> [43] => 001480-----3-----04/11/2003
> [50] => 001000-----3-----04/11/2005
> )
>
>
> I want to convert this array to:
>
> Array
> (
> [1] => 001480-----3-----04/11/2003
> [2] => 001480-----3-----04/11/2003
> )


IMO this is not even sorting, but "flushing" some array.
How hard can this be?

function arrayFlush($mixArray){
foreach($mixArray as $obj) $temp[] = $obj;
return $temp;
}

Or am I missing something?

--
Freundliche Grüße,
Franz Marksteiner

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация