PHP array types
Mainly two types of Array in PHP SINGLE ARRAY/ SINGLE DIMATIONAL ARRAY MULTIPLE ARRAY/ MULTI-DIMAINTIONAL ARRAY This two types of the array divided into two types of INDEX ARRAY/ NUMERIC ARRAY & ASSOCIATIVE ARRAY. Single Array In the single array, we can store multiple values in one variable. Example
1 2 3 4 | <?php $fruits = [‘apple’,’mango’,’banana’,’lemon’]; print_r($fruits); ?> |
Like a fruits array store … Read more