Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<srandtanh>
Last updated: Tue, 19 Sep 2006

tan

(PHP 3, PHP 4, PHP 5)

tan -- Tangent

Description

float tan ( float arg )

tan() returns the tangent of the arg parameter. The arg parameter is in radians.

Example 1. tan() example

<?php

echo tan(M_PI_4); // 1

?>

See also: atan(), sin(), cos(), and deg2rad().




<srandtanh>
Last updated: Tue, 19 Sep 2006