sprintf: Regards the string an integer and formats it as a binary number
|
<?
$total = 10.94;
$fmt_total = sprintf ("%b", $total);
echo "$fmt_total"; ?>
|
|
|
|
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
PHP Function Reference -> Users Code Examples / Notes - > sprintf:
- sprintf
- vsprintf
|