Tag Archives — PHP
Exponential and Logarithmic Functions in PHP
Random Number Functions Functions in PHP Function Name Function Description exp() Calculates the exponent of e expm1() Returns exp(number) – 1, computed in a way that is accurate even when the value of number is close to zero log10() Base-10 logarithm log1p() Returns log(1 + number), computed in a way that is accurate even when […]
Binary, Hexadecimal, Octal Functions in PHP
Random Number Functions Functions in PHP Function Name Function Description base_convert() Convert a number between arbitrary bases bindec() Binary to decimal decbin() Decimal to binary dechex() Decimal to hexadecimal decoct() Decimal to octal hexdec() Hexadecimal to decimal octdec() Octal to decimal PHP base_convert() Function PHP base_convert() Usage The PHP base_convert() function will convert a number […]
Trigonometric Functions in PHP
Trigonometric Functions in PHP Function Name Function Description sin() Sine cos() Cosine tan() Tangent asin() Arc sine acos() Arc cosine atan() Arc tangent atan2() Arc tangent of two variables asinh() Inverse hyperbolic sine acosh() Inverse hyperbolic cosine atanh() Inverse hyperbolic tangent deg2rad() Converts the number in degrees to the radian equivalent rad2deg() Converts the radian […]
Random Number Functions in PHP
Random Number Functions Functions in PHP Function Name Function Description getrandmax() Show largest possible random value mt_getrandmax() Show largest possible random value mt_rand() Generate a random value via the Mersenne Twister Random Number Generator mt_srand() Seeds the Mersenne Twister Random Number Generator rand() Generate a random integer srand() Seed the random number generator PHP getrandmax() […]