Karthikeya Boyini has Published 2383 Articles

zip_entry_read() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 07:29:57

34 Views

The zip_entry_read() function is used to get the contents from an open zip archive file.Syntaxzip_entry_read(zip_entry, len)Parameterszip_entry − The zip entry resource. Required.len − The length in bytes. The default is 1024.ReturnThe zip_entry_read() function Returns the contents from an open zip archive file. Returns FALSE on failure.ExampleThe following is an example. ... Read More

sin() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 07:07:09

40 Views

The sin() function Returns the sine of a number.Syntaxsin(num)Parametersnum − The number for which you want to Return the sine. A value in radians.ReturnThe sin() function Returns the arc sine of a number.Example Live DemoOutput0.4794255386042-0.78332690962748ExampleLet us see another example − Live DemoOutput00.8414709848079-0.84147098480790.90929742682568

rand() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 07:03:56

150 Views

The rand() function gets a random number. You can also set a range to get random number from that particular range.Syntaxrand(); or rand(min_range, max_range);Parametersmin_range − Default is 0. This is the lowest number to be Returned.max_range − This is the highest number to be Returned.ReturnThe rand() function Returns a random ... Read More

pow() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 07:01:25

132 Views

The pow() function Returns a raised to the power of b.Syntaxpow(a,b)Parametersa − The baseb − The exponentReturnThe pow() function Returns a raised to the power of b.Example Live DemoOutput243ExampleLet us see another example − Live DemoOutput4096-5.0805263425291E-5ExampleLet us see another example − Live DemoOutputNAN

octdec() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 06:57:16

40 Views

The octdec() function converts octal to decimal.Syntaxoctdec(val)Parametersval − the octal string to convertReturnThe octdec() function Returns the decimal equivalent of the specified octal number.Example Live DemoOutputa80ExampleLet us see another example − Live DemoOutput120170

mt_rand() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 06:56:17

57 Views

The mt_rand() function is used to generate random numbers. The numbers are generated using the Mersenne Twister algorithm.Note − This function is faster than the rand() functionSyntaxmt_rand() or mt_rand(min, max)Parametersmin − Default is 0.The lowest number to be Returned.max − The highest number to be Returned.ReturnThe mt_rand() function Returns a ... Read More

min() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 06:55:31

90 Views

The min() function Returns the minimum value of an array.Syntaxmin(arr_values); or min(val1,val2,...);Parametersarr_values − The array with values.val1, val2 − The values to compare.ReturnThe min() function Returns the minimum value of an array.Example Live DemoOutput12ExampleLet us see another example − Live DemoOutput12

log1p() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 06:52:28

71 Views

The log1p() function Returns log(1+number), computed in a way that is accurate even when the value of number is close to zero.Syntaxlog1p(val)Parametersval − The specified numberReturnThe log1p() function Returns log(1+number), computed in a way that is accurate even when the value of number is close to zero.Example Live DemoOutput0.69314718055995ExampleLet us see ... Read More

log() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 06:49:59

166 Views

The log() function Returns the natural logarithm of a number.Syntaxlog(num, base)Parametersnum − The value for which you want to calculate the logarithmbase − The logarithmic baseReturnThe log() function Returns the natural logarithm of a number.Example Live DemoOutput0ExampleLet us see another example − Live DemoOutput-INFExampleLet us see another example − Live DemoOutput2.3025850929940.99325177301028Read More

decbin() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 26-Dec-2019 10:38:57

62 Views

The decbin() function converts a decimal number to binary number.Syntaxdecbin(num)Parametersnum − Specifies a number to be converted to binary.ReturnThe decbin() function Returns a string representing the binary number of the decimal value.Example Live DemoOutput111100011001ExampleLet us see another example − Live DemoOutput1100011

Advertisements