Re: array2string
| From: | afan at afan dot net | Date: | Sat, 10 Sep 2005 14:11:47 +0000 |
| Subject: | Re: array2string | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222113@lists.php.net to get a copy of this message | ||
try serialize function
http://us2.php.net/serialize
it's easy to switch back to array again.
small addition to Niels'post
array 2 string - implode (http://us2.php.net/implode)
string to array - explode (http://us2.php.net/explode)
-afan
> string implode(string glue, array pieces) [1]
>
> Regards,
> Niels
>
> [1] http://php.net/manual/en/function.implode.php
>
>> Pardon my ignorance and lack of ability to form the right search for
>> google, but I'm trying to figure out if there's a simple function in
>> PHP to convert array values to a string with a separator for each
>> value.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>