Skip to content

Tag Archives: PHP-function

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
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
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 on 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
This inbuilt function of PHP is used to fetch a random number of elements from an array. The element is a key and can return… Read More
This inbuilt function of PHP is used to delete or pop out and return the last element from an array passed to it as parameter.… Read More
This inbuilt function of PHP is used to reduce the elements of an array into a single value that can be of float, integer or… Read More
This inbuilt function of PHP is used to reverse the elements of an array including the nested arrays. Also, we have an option of preserving… Read More
This inbuilt function of PHP removes the first element from an array and returns the value of the removed element. After the removal of the… Read More
In this article, we will see how to search the specific value in an array & corresponding return the key using the array_search() function in… Read More
In this article, we will see how to get the date & time using the date() & time() function in PHP, we will also see… Read More
In this article, we will see how to get the array key using the array_key_exists() function in PHP, & will also see its implementation through… Read More

Start Your Coding Journey Now!