Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Formatando numeros e valores monetarios</title>
- </head>
- <body>
- <?php
- $saldo = 2000.00;
- $retirada = 133.52;
- $valor = $saldo - $retirada;
- //numer_format armasena dados como string
- echo 'R$'. number_format($valor,2,',','.');
- //grupo de estudos https://www.facebook.com/groups/353340335260087/
- //irc.vircio.org #sampa
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement