[dev] Re: [cvs] commit: horde/lib Array.php

Michael M Slusarz slusarz at bigworm.colorado.edu
Fri Oct 17 15:06:31 PDT 2003


Quoting Marko Djukic <mdjukic at horde.org>:

| > Just curious ... why not use array_flip() for this?
|
| because i want to keep the values as they are.

For future reference, in PHP5 this can be accomplished via
array_combine(array_values($array), array_values($array));

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list