Skip to content

Category Archives: PHP

This inbuilt function of PHP is used to get the difference between one or more arrays. This function compares both the keys and values between… Read More
While working with numbers, many times we need to convert the bases of number and one of the most frequent used conversion is decimal to… Read More
The dechex() is a built-in function in PHP and is used to convert a given decimal number to an equivalent hexadecimal number. The word ‘dechex’… Read More
Trigonometry is an important part of mathematics and PHP’s math functions provides us with some functions which are very useful for calculations involving trigonometry. The… Read More
11. is_nan() : This function takes any value as argument and checks whether a value is number or not. It returns TRUE (1) if the specified… Read More
As you know PHP is a server side script language and is used for creating dynamic web pages. PHP provides a number of built-in math… Read More
The array_sum() function returns the sum of all the values in an array(one dimensional and associative). It takes an array parameter and returns the sum… Read More
In this article, we will learn how to check whether a number and a string is a palindrome or not in PHP. A number or… Read More
The Fibonacci series is a series of elements where, the previous two elements are added to get the next element, starting with 0 and 1.… Read More
We already know how to get the factorial of a number in other languages. Let’s see how this is done in PHP using both recursive… Read More
This is a simple PHP program where we need to calculate the sum of all digits of a number. Examples: Input : 711 Output :… Read More
The substr() is a built-in function in PHP that is used to extract a part of string. Syntax: substr(string_name, start_position, string_length_to_cut) Parameters: The substr() function… Read More
We have learned about some basic string manipulation functions available in PHP in the article PHP | String . In this article, we will learn… Read More
PHP serves us with many built-in methods which can be used to manipulate strings. In this article, we will learn about how to reverse a… Read More
This inbuilt function of PHP is an advanced and extended version of array_slice() function, where we not only can remove elements from an array but… Read More

Start Your Coding Journey Now!