PHP asin( ) Function Last Updated : 22 Jun, 2023 Comments Improve Suggest changes Like Article Like Report Trigonometry is an important part of mathematics and PHP’s math functions provides us with some functions which are very useful for calculations involving trigonometry. One of such function is asin() function. The asin() function in PHP is used to find the arc sine of a number in radians. We already have discussed about PHP | sin() Function. The asin() function is the complementary function of sin(). The parameter passed in the asin() function should specify a number in the range -1 to 1. Syntax: float asin($value) Parameters: This function accepts a single parameter $value. It is the number whose arc sine value you want to find. The value of this parameter must be in radians. Return Value: It returns a floating point number which is the arc sine value of number passed to it as argument. Examples: Input : asin(0) Output : 0 Input : asin(1) Output : 1.5707963267949 Input : asin(-1) Output : -1.5707963267949 Input : asin(2) Output : NaN Below programs illustrate asin() function in PHP: Passing 0 as a parameter: PHP <?php echo (asin(0)); ?> Output: 0 Passing 1 as a parameter: PHP <?php echo (asin(1)); ?> Output: 1.5707963267949 Passing -1 as a parameter: PHP <?php echo (asin(-1)); ?> Output: -1.5707963267949 Passing 2 as a parameter: PHP <?php echo (asin(2)); ?> Output: NaN Reference: http://php.net/manual/en/function.asin.php Comment More infoAdvertise with us Next Article PHP asin( ) Function S Shubrodeep Banerjee Follow Improve Article Tags : Misc Web Technologies PHP PHP-math PHP-function +1 More Practice Tags : Misc Similar Reads PHP asinh( ) Function In mathematics, the inverse hyperbolic functions are the inverse functions of the hyperbolic functions. For a given value of a hyperbolic function, the corresponding inverse hyperbolic function provides the corresponding hyperbolic angle. PHP provides us with builtin functions for inverse hyperbolic 1 min read PHP acosh( ) Function In mathematics, the inverse hyperbolic functions are the inverse functions of the hyperbolic functions. For a given value of a hyperbolic function, the corresponding inverse hyperbolic function provides the corresponding hyperbolic angle. PHP provides us with builtin functions for inverse hyperbolic 1 min read PHP end() Function The end() function is an inbuilt function in PHP and is used to find the last element of the given array. The end() function changes the internal pointer of an array to point to the last element and returns the value of the last element.Syntax:end($array)Parameters:This function accepts a single par 2 min read PHP cos( ) Function Trigonometry is an important part of mathematics and PHPâs math functions provides us with some functions which are very useful for calculations involving trigonometry. The cos()function in PHP is used to find the cosine of a number. The cos() function returns a float value between -1 and 1, which r 2 min read PHP define() Function The define() function is basically used by programmers to create constant. Constants in PHP are very similar to variables and the only difference between both are the values of constants can not be changed once it is set in a program. define() returns a Boolean value. It will return TRUE on success 2 min read PHP | exit( ) Function The exit() function in PHP is an inbuilt function which is used to output a message and terminate the current script. The exit() function only terminates the execution of the script. The shutdown functions and object destructors will always be executed even if exit() function is called. The message 2 min read PHP eval() Function PHP eval() function in PHP is an inbuilt function that evaluates a string as PHP code. Syntax: eval( $string ) Parameters: This function accepts a single parameter as shown in the above syntax and described below. $string: It must consist of a valid PHP code to be evaluated but should not contain op 2 min read PHP each() Function The each() function is an inbuilt function in PHP and is used to get the current element key-value pair of the given array to which the internal pointer is currently pointing. After returning the key and value of the current element the internal pointer is incremented by one in the array. Note: You 2 min read PHP | each() Function The each() function is an inbuilt function in PHP which basically returns an array with four elements, two elements (1 and Value) for the element value, and two elements (0 and Key) for the element key and moves the cursor forward. Syntax: each(array) Parameters: Array: It specifies the array which 2 min read Like