PHP 8.5.0 Beta 1 available for testing

Voting

: four minus zero?
(Example: nine)

The Note You're Voting On

ian dot w dot davis at gmail dot com
20 years ago
Just to elaborate on downright's point about different meanings for %f, it appears the behavior changed significantly as of 4.3.7, rather than just being different on different platforms. Previously, the width specifier gave the number of characters allowed BEFORE the decimal. Now, the width specifier gives the TOTAL number of characters. (This is in line with the semantics of printf() in other languages.) See bugs #28633 and #29286 for more details.

<< Back to user notes page

To Top