
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Karthikeya Boyini has Published 2193 Articles

karthikeya Boyini
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

karthikeya Boyini
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

karthikeya Boyini
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

karthikeya Boyini
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

karthikeya Boyini
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

karthikeya Boyini
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

karthikeya Boyini
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

karthikeya Boyini
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

karthikeya Boyini
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

karthikeya Boyini
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