array2string
| From: | David Christensen | Date: | Sat, 10 Sep 2005 12:46:30 +0000 |
| Subject: | array2string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-222111@lists.php.net to get a copy of this message | ||
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.
eg.
$arr = array(1, 5, 2);
$str = <some_funct>($arr, ',');
print $str; # "1,5,2"
Thanks for your help,
David Christensen