RE: [PHP] Convert (join)
| From: | scott [gts] | Date: | Fri, 29 Jun 2001 16:22:09 +0000 |
| Subject: | RE: [PHP] Convert (join) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55577@lists.php.net to get a copy of this message | ||
there's also join() (which is the exact same as implode)
but might help you remember that it's joining the elements
of an array together into a single string.
> -----Original Message-----
> From: Alva Chew [mailto:alvachew@mailandnews.com]
> Sent: Thursday, June 28, 2001 9:00 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Convert
>
>
> use implode("separator", $array).
> the separator joins the array together.
>
> For example, if you got 'cat', 'run', 'dog' in the array
> using implode("-", $array) will give you:
>
> cat-run-dog. Got it?
>
> regards,
> Alva Chew
>
> <tvkarthick@myrealbox.com> wrote in message
> news:200106281204.f5SC4fU16294@localhost.localdomain...
> > Hi
> >
> > How do I convert arrays to string ??.
> >
> > ~ Karthick
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>