Any reason why printf() does not support formats with thousands separator?

[email protected] (Per Jessen)
Newsgroups php.general
Organization News-server @ ENIDAN Technologies GmbH
Message-ID <[email protected]>
$SUBJ says it all - I've recently discovered that a format such
as %'.2f" results in this:

php -r "printf(\"%'.2f\", 23232323.237);"
23232323.237000

I know that number_format() will do the same, but I am given the format
spec as an interface, I would need to try to parse it and then decide
whether to use printf() or number_format(). 


-- 
Per Jessen, Zürich (19.9°C)
http://www.hostsuisse.com/ - virtual servers, made in Switzerland.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.