#83. PHP Math Intdiv, Sqrt, Pow Functions

 How to work Math Intdiv, Sqrt, Pow Functions?

E.g


Run Code:

<?php
// Devided function
echo intdiv(5,5) . "<br>";
echo intdiv(5,10). "<br>";
echo intdiv(-15,-5). "<br>";
?>

Pow Syntax:


Run Code:
<?php
// power of
echo pow(5,4) . "<br>";
echo pow(10,4). "<br>";
echo pow(9,2). "<br>";

?>
Sqrt Syntax:

<?php
// Square Function
echo sqrt(5) . "<br>";
echo sqrt(10). "<br>";
echo sqrt(9). "<br>";
?>


Comments

Popular posts from this blog

#30. PHP Recursive Function