Malhar Lathkar has Published 154 Articles

PHP dechex() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:42:28

178 Views

Definition and UsageThe dechex() function returns a string that contains hexadecimal equivalent of given decimal number argument.This function returns a string with hexadecimal characters.Syntaxdechex ( int $number ) : stringParametersSr.NoParameter & Description1numberA decimal number to be converted in equivalent hexadecimal representationReturn ValuesPHP dechex() function returns a hexadecimal number inside string.PHP ... Read More

PHP decbin() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:40:45

241 Views

Definition and UsageThe decbin() function returns a string that contains binary equivalent of given decimal number argument.This function returns a string with binary digits.Syntaxdecbin ( int $number ) : stringParametersSr.NoParameter & Description1numberA decimal number to be converted in equivalent binary representationReturn ValuesPHP decbin() function returns a binary number inside string.PHP ... Read More

PHP cosh() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:39:01

216 Views

Definition and UsageThe cosh() function returns the hyperbolic cosine ratio of given angle in radians. In trigonometry, hyperbolic cosine ratio is defined as .cosh(x) = (ex – e-x))/2This function returns a float value .Syntaxcosh ( float $arg ) : floatParametersSr.NoParameter & Description1argA floating point value that represents angle in radiansReturn ... Read More

PHP cos() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:37:20

331 Views

Definition and UsageThe cos() function returns the cosine ratio of given angle in radians. In trigonometry, cosine of an angle is defined as ratio of lengths of adjacent side and hypotenuse.cos(x) = adjacent/hypotenuseIf x=90 degree, cos(x) = 0.This function returns a float value.Syntaxcos ( float $arg ) : floatParametersSr.NoParameter & ... Read More

PHP ceil() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:35:17

337 Views

Definition and UsageThe ceil() function is an in-built function in PHP iterpreter. This function accepts any float number as argument and rounds it up to the next highest integer.This function always returns a float number as range of float is bigger than that of integer.Syntaxceil ( float $num ) : ... Read More

PHP bindec() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:34:02

222 Views

Definition and UsageThe bindec() function returns decinmal equivalent of a binary number represented as a string argument. Binary number inside string is interpreted as unigned integer.This function returns a decimal integer. However, it may return float for size reasons.Syntaxbindec ( string $binary_string ) : numberParametersSr.NoParameter & Description1binary_stringA string containing binary ... Read More

PHP base_convert() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:31:54

493 Views

Definition and UsageThe base_convert() function is versatile utility to convert a number with one base to another. The base is not restricted to binary, octal, hexadecimal or decimal. It can be any number between 2 and 36.First argument to this function is a string that can contain alpha-numeric characters. Digits ... Read More

PHP atan2() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:29:52

232 Views

Definition and UsageThe atan2() function calculates arc tan of two variablesatan2(y, x) returns the arc tangent of the two numbers x and y. although it is similar to atan(y)/atan(x), the signs of both x and y are used to determine the quadrant of the result. Accordingly for values of x ... Read More

PHP atanh() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:29:17

210 Views

Definition and UsageThe atanh() function returns the inverse hyperbolic tangent ratio of given given parameter. In other words, the return value of atanh() is hyperbolic tangent of given parameter. A inverse hyperbolic tangent function is defined as .atanh(x) = 0.5Xlog((1+x)/(1-x))This function returns a float value .Syntaxatanh ( float $arg ) ... Read More

PHP atan() Function

Malhar Lathkar

Malhar Lathkar

Updated on 29-Jun-2020 08:24:18

265 Views

Definition and UsageThe atan() function returns the arc tan or tan inverse of arg in radians. atan() is the inverse function of tan(). Therefore if tan(x)=y, atan(y)=x.For example, tan(pi/3)= 1.73205080757 (Squre Root of 3) and atan(1.73205080757)=1.04719755 rad which is equal to pi/3.This function returns a float value .Syntaxatan ( float ... Read More

Advertisements