Samual Sam has Published 2310 Articles

zip_close() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:53:23

66 Views

The zip_close() function is used to close the zip file archive. The zip is opened by the zip_open() function.Syntaxzip_close(zip_file)Parameterszip_file − A zip file opened with zip_open() is to be mentioned here. This is the file we want to close.ReturnThe zip_close() function returns nothing.ExampleOutputFile will be closed nowRead More

zip_entry_compressed_size() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:52:24

65 Views

The zip_entry_compressed_size() function returns the compressed file size of a zip archive entry.Syntaxzip_entry_compressed_size(zip_entry)Parameterszip_entry − The zip entry resource. Required.ReturnThe zip_entry_compressed_size() function returns the compressed file size of a zip archive entry.The following is an example that gets the size of the files in "new.zip" archive.ExampleOutputCompressed: 90 Compressed: 12 Compressed: 67Read More

lcg_value() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:51:36

70 Views

The lcg_value() function Returns a pseudo random number in the range 0 - 1Syntaxlcg_value()ParametersReturnThe lcg_value() function Returns a pseudo random float value in the range 0 - 1.Example Live DemoOutput0.42510822828987Let us see another example generating different values every time lgc_value() function is used.Example Live DemoOutput0.0016752472603958 0.95593815480995 0.57392418877843 0.1374706663408Read More

mt_getrandmax() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:50:15

61 Views

The mt_getrandmax() function Returns the largest possible random value.Syntaxmt_getrandmax()ParametersNAReturnThe mt_getrandmax() function Returns an integer value, which is the largest possible random value.Example Live DemoOutput2147483647

mt_srand() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:49:42

88 Views

The mt_srand() function seeds the Mersenne Twister random number generator.Note − Random number generator is seeded automatically after the release of PHP 4.2.0. This function is not needed now.Syntaxmt_srand(seed)Parametersseed − The seed valueReturnThe mt_srand() function Returns nothing.Example Live DemoOutput1320295657

deg2rad() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:48:34

112 Views

The deg2rad() function converts degree to radian value. It Returns the radian equivalent of the specified degree value.Syntaxdeg2rad(num)Parametersnum − The degree value to be converted to radian.ReturnThe deg2rad() function Returns the radian equivalent of the specified degree value.Example Live DemoOutput360 degrees converted to 6.2831853071796 radians!Let us see another example −Example Live DemoOutput0.785398163397451.57079632679493.14159265358984.71238898038476.2831853071796Read More

expm1() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:47:39

69 Views

The expm1() function Returns e raised to the power x - 1 i.eex -1Syntaxexpm1(val)Parametersval − This is the powerReturnThe expm1() function Returns e raised to the power x - 1Example Live DemoOutput01.718281828459Let us see another example −Example Live DemoOutpute^1-1 = 1.718281828459

fmod() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:46:50

216 Views

The fmod() function Returns the modulo of dividend/ divisor. Floating modulo in fmod.Syntaxfmod(dividend/ divisor)Parametersdividend − The number to be divided.divisor − This is the number that divides.ReturnThe fmod() function Returns the remainder of dividend/ divisor.Example Live DemoOutput3

hypot() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:45:55

113 Views

The hypot() function is used to calculate the hypotenuse of a right-angle triangle. It Returns the length of the hypotenuse in float. Of a right-angled triangle, the longest side is hypotenuse.Syntaxhypot(a, b)Parametersa − Length of first sideb − Length of second sideReturnThe hypot() function Returns the length of the hypotenuse ... Read More

is_infinite() function in PHP

Samual Sam

Samual Sam

Updated on 26-Jun-2020 09:44:22

91 Views

The is_infinite() function checks if a value is infinite or not. It Returns true if num is an infinite number, else it Returns false.Syntaxis_infinite(num)Parametersnum − The number to be checked.ReturnThe is_infinite() function Returns true if num is an infinite number, else it Returns false.ExampleExample Live DemoOutput1Read More

Advertisements