This tutorial is created to give an abstract idea about commonly used PHP array
function with examples. Through this tutorial you'll be able to know, how to use
array functions to make code more short and simple.
Note:  I'll be only covering some of the basic array
functions, Which were frequently used by PHP developers. You can refer all
the array functions from the official PHP
Documentation. Feel free to share your
opinion in the comment section.
Creating an Array in PHP
PHP array is created using an array() function. There are basically three types of
arrays in PHP
Indexed arrays - An array with a numeric index.
Asociative arrays - An array with named keys.
Multidimensional arrays - An array containing one or more arrays.
To create an indexed array, add array
values inside the parentheses, separated by commas.