what is %4.2f in PHP?

Ormond Vostashi

New member
ECHO ".sprintf("%4.2f", (2 * $radius * pi()));
Works

ECHO ".sprintf((2 * $radius * pi()))
Doesn't


What exactly is the %4.2f ? I can only think it is setting out a Format for the text to display in, but when I change the values it still displays the same thing.. but if I Remove them, it shows nothing.
 
Back
Top