How to Add Key & Value in Array in PHP

How to Add Key & Value in Array in PHP
Rating: 5 - 1 Votes

How to Add Key & Value in Array in PHP

Key value pairs in PHP known as associative arrays.  Example is given below where we are adding more items to the previously initialized associative array.