|
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
Navigation:
[Reply to this message]
|