Skip to content

Tag Archives: PHP-function

The array_replace() function is a builtin function in PHP and it takes a list of arrays separated by commas (,) as parameters and replaces all… Read More
The array_fill_keys() function is a builtin function in PHP and is used to create a new array filled with the given keys and value provided… Read More
The str_repeat() function is a built-in function in PHP and is used to create a new string by repeating a given string fixed number of… Read More
The shuffle() Function is a builtin function in PHP and is used to shuffle or randomize the order of the elements in an array. This… Read More
Many times while writing programs or development we need to filter arrays to remove duplicates. PHP provides us with an inbuilt function to do this,… Read More
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

Start Your Coding Journey Now!