Re: [PHP] array_flip duplicate keys as arrays

2006-09-13 Thread tedd
At 11:39 AM -0500 9/13/06, Richard Lynch wrote: I figured somebody else must have needed this, so there'd have to be a PHP function for it... But I'm not finding it when I rtfm... Given an array like this: $t9 = array('F' => 'FIND', 'D' => 'FIND', 'E' =>'FIND', 'H' => 'HELP', 'I' => 'HELP');

[PHP] array_flip duplicate keys as arrays

2006-09-13 Thread Richard Lynch
I figured somebody else must have needed this, so there'd have to be a PHP function for it... But I'm not finding it when I rtfm... Given an array like this: $t9 = array('F' => 'FIND', 'D' => 'FIND', 'E' =>'FIND', 'H' => 'HELP', 'I' => 'HELP'); I'm looking for a built-in function that returns t