note 73784 deleted from ref.array by philip
| From: | philip@php.net | Date: | Sat, 10 Mar 2007 01:07:46 +0000 |
| Subject: | note 73784 deleted from ref.array by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124290@lists.php.net to get a copy of this message | ||
Note Submitter: practicalideas -_@_- gmail
Reason: useless
----
A simple function converting array to string with separated character.
<?php
function arrayToString($array, $chr = ','){
foreach ($array as $value):
if(isset($str))
$str .= $chr . $value;
else
$str = $value;
endforeach;
return $str;
}
?>
-cAEZAr-
VD07M03.10H08F36