Factorial Program The factorial of a number n is defined by the product of all the digits from 1 to n (including…
regex
-
-
Fibonacci Series Fibonacci series is the one in which you will get your next term by adding previous two numbers. For example,…
-
Number Triangle Number triangle in PHP can be printed using for and foreach loop. There are a lot of patterns in number…
-
Leap Year Program A leap year is the one which has 366 days in a year. A leap year comes after every…
-
PHP Max() Function The max() function is used to find the highest value. Syntax: max(array_values); OR max(value1,value2,value3,value4…); Name Description Required/Optional array_values Specifies…
-
Palindrome Number A palindrome number is a number which remains same when its digits are reversed. For example, number 24142 is a…
-
Subtracting Two Numbers There are three methods to subtract two numbers: Subtraction in simple code in PHP Subtraction in form in PHP…
-
PHP abs() function The abs() function returns absolute value of given number. It returns an integer value but if you pass floating…
-
Prime Number A number which is only divisible by 1 and itself is called prime number. Numbers 2, 3, 5, 7, 11,…
-
Sum of Digits To find sum of digits of a number just add all the digits. For example, 14597 = 1 +…