Re: srtoring user selection on the database...
| From: | Ignacio Vazquez-Abrams | Date: | Thu, 18 Jan 2001 22:56:34 +0000 |
| Subject: | Re: srtoring user selection on the database... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35491@lists.php.net to get a copy of this message | ||
On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote:
> On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote:
>
> > Even shorter:
> >
> > $acc=implode(",", array_flip($cb));
> >
>
> Assuming, of course, that the original values are unique (oops!).
>
>
Oh wait:
$acc=implode(",", array_keys($cb));
THAT will definitely work.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>