tan()
Published May 18, 2023
Contribute to Docs
The tan()
function returns the tangent of the angle passed as the argument. The return value is a floating-point number.
Syntax
$result = tan($angle);
Where $angle
is the angle in radians.
Codebyte Example
Using tan()
to return the tangent of the angle in radians:
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.