Author Archive

PHP Add Element to Array

PHP array elements can be added manually or using PHP built-in array functions. Adding array elements manually was explained in previous article. So, this article will explain how to add PHP array elements using PHP built-in array

How to Create PHP Array Dynamically

PHP provides some built-in array functions which help to do array operation so easily. The range() function is one of them. With the range() function, PHP numeric array can be created dynamically. This article will show how

How to Merge Arrays in PHP

PHP provides some built-in array functions which help to do array operation so easily. The array_merge() function is one of them. This article will explain how to merge two arrays with the array_merge() function. PHP array_merge() function

Multidimensional Array in PHP

PHP¬† multidimensional array is that array which contains one or more arrays as its element. A simple example of a PHP multidimensional array is given below… $a = array(‘name’=>”Sayeed”, ‘language’=>array(‘PHP’,’HTML’,’CSS’), ‘status’=true); The array variable $a contains another

Associative Array in PHP

PHP associative array is that array whose index is represented by string. It stores items in association with key values. The structure of an associative array is given below… $a = array(‘id’=>1,’name’=>”Sayeed”,’age’=>24); Here, the array index is
Page 2 of 41234