In php, array_unique() function is used to remove all the duplicate values from an array, if we have two same…
we can convert JSON string to an array with the help of json decode() function. This functon accepts the JSON…
You may ask, “How to create an empty array in PHP?” This is common in PHP codes, where you may…
In PHP, we have six functions for sorting array: sort()= it sort an array in ascending order rsort()= it sort…
we have soo many methods to delete an element from an array in php but the most common or mostly…
we can create an array from php string with the help of str_split( ) function in PHP, str_split() is an…
We can check a key exist or not in an array with the help of array_key_exist() function in PHP. array_key_exists()…
array_merge() Function The array_merge() function is used to merge two or more arrays into a single array. This function is…
We can get total number of elements in an array by using count() and sizeof() functions. Count() Function The count() function is…
array() function is use to create an array in our PHP and php supports three types of array- index array=…
We have three types of array in PHP Index arrays associative arrays multidimensional arrays 1. Index Array (Numeric Array) These…
the most common task with arrays is to do something with every element for instance, sending mail to each element…
arrays is a type of data structure that allows us to store multiple elements of similar data type under a…
Loop in PHP is used to execute a statement or a block of statements, multiple times until and unless a…
Cookies in php is a small file with a maximum size that the web server stores on the client computer. they…