Skip to content

Tag Archives: PHP-function

array_map() Method: The array_map() is used to modify all elements in one or more arrays according to some user-defined condition in an easy manner. It… Read More
file_get_contents() Function: The file_get_contents() function is used to read a file into a string. It uses memory mapping techniques that are supported by the server… Read More
In this article, we are going to discuss how to add 301 redirects in PHP. Sometimes we come across scenarios like a few web pages… Read More
The ZipArchive::addEmptyDir() function is an inbuilt function in PHP which is used to add a new directory. Syntax: bool ZipArchive::addEmptyDir( string $dirname , int $flags… Read More
In this article, we will see array_map(), array_reduce(), and array_walk() functions in PHP. We will see how these functions work along with understanding their basic… Read More
A string is a sequence of characters enclosed within single or double-quotes. A string can also be looped through and modifications can be made to… Read More
A cookie is often a small file that is embedded by the server from which the user has visited or is getting a response. Each… Read More
There are steps to understand for retrieving the data from the MySQL database.  Approach: Create the database, then create the table for data. Enter the… Read More
Extract() function is an inbuilt function in PHP which is used when there is conflict in the variable name. When someone writes a code of… Read More
JSON is a JavaScript notation for storing and fetching data. Data is usually stored in JSON, XML, or in some other database. It is a… Read More
Including the content of a PHP file into another file reduces the complexity of code by reducing the code and improving its modularity by splitting… Read More
The PHP session is required so that you can store the user information and use it on different pages of the browser.  Approach: It creates… Read More
The Memcached::getByKey() function is an inbuilt function of Memcached class in PHP which is used to retrieve an item from a specific server. Functionally this… Read More
In PHP, the array is a type of data structure that allows us to store similar types of data under a single variable. The array… Read More
JSON stands for JavaScript Object Notation. Like XML, it is a text-based format for the exchange of data which is easier to read and write… Read More

Start Your Coding Journey Now!