Karthikeya Boyini has Published 2193 Articles

sqrt() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 10:00:14

104 Views

The sqrt() function Returns the square root of a number.Syntaxsqrt(num)Parametersnum − The number for which you want to find the square rootReturnThe sqrt() function Returns the square root of the specified number.Example Live DemoOutput4ExampleLet us see another example − Live DemoOutput0.5ExampleLet us see another example − Live DemoOutputNANRead More

zip_read() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 09:58:15

51 Views

The zip_read() function reads the next entry in a ZIP file archive.Syntaxzip_read(zip)Parameterszip − The zip resource to readReturnThe zip_read() function returns a resource containing a file within the zip archive on success.ExampleThe following is an example, wherein we have a zip file "new.zip", with the following files.amit.txt peter.txt result.html demo.java ... Read More

zip_entry_read() function in PHP

karthikeya Boyini

karthikeya Boyini

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

76 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

71 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

220 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

213 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

71 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

101 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

129 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

115 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

Advertisements