Aula3_op_ar - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of Aula3_op_ar.php
- <?php
- $var1 = 98000;
- $var2 = 2.60;
- echo "Valor absoluto da prierira variavel : " .abs($var1)."\n";
- echo "Potenciação: " .pow($var1,$var2)."\n";
- echo "Raiz quadrada: " .sqrt($var1). "\n";
- echo "$var2 arredondado fica".round($var2)."\n";
- echo "$var2 apenas co sua parte inteira fica ".intval($var2)."\n";
- echo "Formatando $var1 para moeda: ".number_format($var1,2,",",".")."\n";
- echo "Fim das funções basicas para operadores aritimeticos!";
- ?>
File Description
- Aula3_op_ar
- PHP Code
- 04 Sep-2019
- 496 Bytes
You can Share it:
Latest PHP Pastes