Archive for June, 2008

Swap array

Friday, June 20th, 2008

Swaps all array values to array keys and vice versa.

Since PHP 4 there exists a build in function for this snippet:
array_flip.

Posted in Uncategorized | Comments Off on Swap array