cos in PHP December 9, 2021 by Codingtube team Table of Contents Syntax of cos in PHPExample of cos Syntax of cos in PHP float cos(float value) Returns the cosine of value in radians Example of cos <?php echo cos(M_PI); // -1 ?>