note 10235 deleted from function.array-flip by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 21:01:33 +0000 |
| Subject: | note 10235 deleted from function.array-flip by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25457@lists.php.net to get a copy of this message | ||
if you're using PHP < 4.0 try this function :
function array_transpose($alpha) {
while (list($key, $val) = each($alpha)) {
$beta[$val] = $key;
}
return $beta;
}