Skip to content

Tag Archives: PHP-function

While solving mathematical problems we often come across questions which requires the value of π. Manually inserting the value of PI (π) can be time-consuming… Read More
In this article, we will see how to replace the occurrence of the search string with the replacing string using the str_replace() function in PHP,… Read More
The compact() function is an inbuilt function in PHP and it is used to create an array using variables. This function is opposite of extract()… Read More
The extract() Function is an inbuilt function in PHP. The extract() function does array to variable conversion. That is it converts array keys into variable… Read More
There is some point in time when we need to add a number of days, months, years, hours, minutes and seconds to Date and time.… Read More
This built-in function of PHP is used to exchange elements within an array, i.e., exchange all keys with their associated values in an array and… Read More
There are some point of time when we need to calculate the product of all elements in an array. The most basic way to do… Read More
Imploding and Exploding are couple of important functions of PHP that can be applied on strings or arrays. PHP provides us with two important builtin… Read More
Many times it happens that while solving mathematical expressions we require to calculate the square root of a number. To solve this issue like other programming… Read More
Comparing two strings is one of the most commonly used string operation in programming and web development practices. The strcmp() is an inbuilt function in… Read More
The array_intersect_assoc() is a builtin function in PHP and is used to compute the intersection of two or more arrays. This function is similar to… Read More
This built-in function in PHP is used to filter the elements of an array using a user-defined function which is also called a callback function.… Read More
This builtin function of PHP is used to compute the intersection of two or more arrays. The function is used to compare the values of… Read More
The array_keys() is a built-in function in PHP and is used to return either all the keys of and array or the subset of the… Read More
The array_pad() is a builtin function in PHP and is used to pad a value fixed number of time onto an array. This function inserts… Read More

Start Your Coding Journey Now!