Many a times it happens that while solving mathematical expressions we require to calculate the square root of a number.
To solve this issue like other programming language PHP provides us with a built-in function sqrt() which can be used to calculate the square root of a number. The sqrt() function in PHP is used to calculate the square root of a number. PHP sqrt function in positive negative decimal number phpmyadmin exploit510
phpmyadmin 2.11.11.3 exploit80
phpmyadmin 3.2.0.1 exploit55
phpmyadmin 5.6 exploit50
phpmyadmin exploit metasploit
Syntax
sqrt ( value )Example
<!DOCTYPE html>
<html>
<head>
<title>PHP sqrt function</title>
</head>
<body>
<h1>When Positive number is passed as a parameter </h1>
<?php
<html>
<head>
<title>PHP sqrt function</title>
</head>
<body>
<h1>When Positive number is passed as a parameter </h1>
<?php
echo(sqrt( 81));
?>
9
OR
Example
<!DOCTYPE html>
<html>
<head>
<title>PHP sqrt function</title>
</head>
<body>
<h1>When Negative number is passed as a parameter </h1>
<?php
<html>
<head>
<title>PHP sqrt function</title>
</head>
<body>
<h1>When Negative number is passed as a parameter </h1>
<?php
echo(sqrt( -81));
?>
</html>
NaN
OR
Example
<!DOCTYPE html>
<html>
<head>
<title>PHP sqrt function</title>
</head>
<body>
<h1>When a number with a decimal number is passed as a parameter </h1>
<?php
<html>
<head>
<title>PHP sqrt function</title>
</head>
<body>
<h1>When a number with a decimal number is passed as a parameter </h1>
<?php
echo(sqrt( 0.09));
echo "<br>";
echo(sqrt( 0.06));
?>
</html>
0.3
0.24494897427832
OR
Example
<!DOCTYPE html>
<html>
<head>
<title>PHP sqrt function</title>
</head>
<body>
<h1>When zero is a passed as a parameter </h1>
<?php
<html>
<head>
<title>PHP sqrt function</title>
</head>
<body>
<h1>When zero is a passed as a parameter </h1>
<?php
echo(sqrt( 0));
?>
</html>
0

Video on This Topic :- Soon
I hope you liked this post, then you should not forget to share this post at all.
Thank you so much :-)
0 comments:
Post a Comment
For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.