Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
21.3K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
Misc
8.5K+ articles
PHP
3.9K+ articles
PHP-function
2.3K+ articles
Functions
57+ articles
PHP-gmp
42+ articles
PHP-math
60 posts
Recent Articles
Popular Articles
PHP Program to Find GCD or HCF of Two Numbers
Last Updated: 24 October 2023
Given two numbers, the task is to find the GCD or HCF of two numbers in PHP. GCD (Greatest Common Divisor) or HCF (Highest Common Factor) of two numbers is the largest pos...
read more
PHP
PHP-math
PHP-Questions
Geeks Premier League 2023
Sum of First N Natural Number in PHP
Last Updated: 16 November 2023
Given a number N, the task is to find the sum of the first N natural numbers in PHP. Examples:Input: N = 5Output: 15Explanation: We will Add the Numbers till N ...
read more
PHP
PHP-math
Geeks Premier League 2023
Add Two Numbers Without using Arithmetic Operators in PHP
Last Updated: 12 December 2023
This article will show you how to add two numbers without using Arithmetic operators in PHP. There are two methods to add two numbers, these are:Table of ContentUsing Bitw...
read more
PHP
PHP-math
Geeks Premier League 2023
PHP Program to Find Square Root of a Number
Last Updated: 12 December 2023
Given a Number, the task is to find the Square Root of Number in PHP. Examples:Input: 15Output: 5Input: 30Output: 5.477There are three methods to find the square root of t...
read more
PHP
PHP-math
Geeks Premier League 2023
PHP Program to Find LCM of Two Numbers
Last Updated: 12 December 2023
Given two numbers, the task is to find the LCM of two numbers using PHP. Examples:Input: num1 = 25, num2 = 5Output: LCM = 25Input: num1 = 36, num2 = 72Output: LCM = 72Ther...
read more
PHP
PHP-math
Geeks Premier League 2023
PHP Program to Add Two Binary Numbers
Last Updated: 12 December 2023
Given Two binary numbers, the task is to add two binary numbers in PHP.Examples:Input: num1 = '1001', num2 = '1010'Output: 10011Input: num1 = '1011', num2 = '1101'Output: ...
read more
PHP
PHP-math
Geeks Premier League 2023
PHP Program to Multiply Two Numbers
Last Updated: 28 April 2025
Given two numbers, the task is to multiply both numbers using PHP. Multiplying two numbers is a fundamental arithmetic operation. Examples:Input: x = 10, y = 5Output: 50In...
read more
Picked
PHP
PHP-math
Geeks Premier League 2023
How to use Modulo Operator in PHP ?
Last Updated: 02 January 2024
The modulo operator in PHP is represented by the percentage symbol %. It calculates the remainder of one number divided by another. The basic syntax for the modulo operato...
read more
Picked
PHP
PHP-math
Geeks Premier League 2023
Find Root of Quadratic Equation using PHP
Last Updated: 17 January 2024
A quadratic equation is a second-degree polynomial equation in a single variable, represented as ax^2 + bx + c = 0, where a, b, and c are constants. Solving a quadratic eq...
read more
Picked
PHP
PHP-math
Geeks Premier League 2023
How to Convert Seconds into Hours and Minutes in PHP ?
Last Updated: 02 January 2024
Given a number n (time in seconds), the task is to convert the given number of seconds into hours and minutes in PHP.Examples: Input: 3691215Output: 1025 hours and 20 minu...
read more
Picked
PHP
PHP-math
Geeks Premier League 2023
PHP Program to Find Compound Interest
Last Updated: 27 February 2024
Compound interest is a financial concept that calculates the interest on the initial principal and also on the accumulated interest of previous periods. It is widely used ...
read more
Picked
PHP
PHP-math
PHP Program to Find Simple Interest
Last Updated: 27 February 2024
Simple interest is the method to calculate the interest where we only take the principal amount each time without changing it for the interest earned in the previous cycle...
read more
Picked
PHP
PHP-math
PHP Program to Calculate Root Mean Square
Last Updated: 19 February 2024
Root Mean Square (RMS) is a statistical measure of the magnitude of a varying quantity. It is commonly used in physics, engineering, and statistics to represent the effect...
read more
Picked
PHP
PHP-math
PHP Program to Calculate pow(x, n)
Last Updated: 19 February 2024
Calculating the power of a number is a common mathematical operation. In PHP, this can be done using the pow( ) function, which takes two arguments, the base x and the exp...
read more
Picked
PHP
PHP-math
PHP Program to Print All Prime Factors of a Given Number
Last Updated: 27 February 2024
Prime factors of a number are the prime numbers that divide the given number exactly. Finding prime factors is a common task in number theory and has applications in crypt...
read more
Picked
PHP
PHP-math
1
2
3
4
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !