sprintf: Considers the string an integer and formats it as a decimal number : sprintf : Development PHP Source Code


PHP Source Code » Development » sprintf »

 

sprintf: Considers the string an integer and formats it as a decimal number




<?

$total = 110;

$fmt_total = sprintf ("%c", $total);

echo "$fmt_total";
?>
           
       



HTML code for linking to this page:

    PHP Function Reference -> Users Code Examples / Notes - > sprintf:
  • sprintf
  • vsprintf
Follow Navioo On Twitter

PHP Source Code

 Navioo Development
» sprintf