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
Category Archives: PHP
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
This builtin function of PHP is used to compute the intersection of two or more arrays. The function is different from array_intersect() and array_intersect_assoc() in… Read More
This inbuilt function of PHP is used to add one or more elements into an array and these elements are added to at the beginning… Read More
This inbuilt function of PHP is used to push new elements into an array. We can push one or more than one element into the… Read More