Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: php 如何获取给定语言环境的当前小数/千位分隔符
如果我知道语言/国家代码,我可以在 PHP 中获得小数点吗?
或者是否有包含此信息的公共数据库/csv/规范?
看看localeconv()。你可以这样做:
$locale_info = localeconv(); echo $locale_info['decimal_point'];