Re: Array to string?
| From: | Gabriel Peugnet | Date: | Wed, 15 Oct 2003 08:34:23 +0000 |
| Subject: | Re: Array to string? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166169@lists.php.net to get a copy of this message | ||
When I needed it I could'n find it so I made my own.
function arrayToStr( $arr ){
$str = "";
while( true ){
$linea = current($arr);
$str = $str . $linea;
if( next($arr) == FALSE ){ break; }
$str = str . "\n"; // a newline separates each element.
}
return $str;
}
Gabriel.
"Douglas Douglas" <replaceafill@yahoo.com> escribió en el mensaje
news:20031015053817.20528.qmail@web21308.mail.yahoo.com...
> Hello everybody.
>
> Is there any built-in function to convert an array to
> string?
>
> Thanks.
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com