Re: implode() in MDB_QueryTool - decimal-point -> comma
| From: | Lorenzo Alberton | Date: | Mon, 15 May 2006 21:19:38 +0000 |
| Subject: | Re: implode() in MDB_QueryTool - decimal-point -> comma | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24082@lists.php.net to get a copy of this message | ||
Hi Lukas,
I see only the two solutions like they have been stated in the bug-report
http://pear.php.net/bugs/bug.php?id=3021 form others.
1) to have an "own" implode that checks the type of each value.
function my_implode( $concatStr, $array ) {
$str = '';
foreach( $array as $value ) {
if( $str !== '' ) $str .= $concatStr;
$str .= is_double($value) ? floatToStringNoLocale($value) : $value;
}
return $str;
}
well, it probably is enough, and we shouldn't
need to make those extra metadata calls.
Thanks for your suggestion, I've committed the fix,
can you try the latest CVS version?
Regards,
--
Lorenzo Alberton
http://pear.php.net/user/quipo