Tag Archives: PHP

PHP: How to insert value into array

There are two ‘main’ forms of arrays within PHP, these are numerical (or zero based) and associative arrays. Creating a new array The code below demonstrates creating a new array: $arr = new array(); This is the same for numerical and associative arrays. Numerical Arrays You can think of...
Page 2 of 212