Re: changing array to a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



join is also an alias for implode in case you're having trouble remembering
the name, so you can go for
$ids = join(',', $_POST['subscriptions']);

--
itoctopus - http://www.itoctopus.com
"Chris" <dmagick@xxxxxxxxx> wrote in message
news:4609EE05.3030301@xxxxxxxxxxxx
> Richard Kurth wrote:
> > When I submit the for below it gives me an array that looks like this
> > "array(5) { [0]=> string(1) "3" [1]=> string(1) "4" [2]=> string(1) "5"
> > [3]=> string(1) "6" [4]=> string(1) "7" } "
> > I would like to convert it to a string like this  "3,4,5,6,7"
>
> $ids = implode(',', $_POST['subscriptions']);
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux