PHP Sprintf Print Values To String – String Function

<?php$cost = sprintf("$%01.2f", 43.2); echo $cost;?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.