|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-01 18:39 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ in polish locale decimal separator of floats is ',' When I wanna to replace some string with some float, it returns string with '.' separator, but should be ',' Reproduce code: --------------- setlocale(LC_NUMERIC,'pl_PL.UTF-8'); $value = 11.11; echo round($value,2)."-"; $str = '?'; echo str_replace('?',round($value,2),$str); Expected result: ---------------- 11,11-11,11 Actual result: -------------- 11,11-11.11