printf %f,%10f,%-010f,%2.2f
: <pre> <?php $value = 3.14159; printf("%f,%10f,%-010f,%2.2f\n", $value, $value, $value, $value); ?> </pre>