Browsing: php
An array can stores multiple value in a single variable. There different types of array in PHP such as single…
In PHP there is a function available for get date and time that is date(format, timestamp) function.Let’s see the parameter…
An array is a special variable, which can hold more than one value at a time.Let’s see the code example…
Floyd’s triangle is a right-angled triangular array of natural numbers.It is named after Robert Floyd. It is defined by filling…
Fibonacci series are number series,in which next number is the sum of previous two numbers.Example: 0, 1, 1, 2, 3,…
An armstrong number is a number that is equal to the sum of cubes of its digits.For example 0, 1,…
There are different pattern design available in PHP using asterisk (*) symbol.Such as Diamond Pattern, Diamond Triangle number,Reverse Pyramid Pattern,Heart…
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such…
In PHP we can swap two numbers in two ways-1. Swap two numbers using third variable.2. Swap two numbers using…
LCM stands for “Least Common Multiple”.The least common multiple (LCM) of two numbers is the smallest number (not zero) that…