Home / Web Development / Associative Arrays

Associative Arrays

In the products array, we allowed PHP to give each item the default index. This meant that the first item we added became item 0, the second item 1, and so on. PHP also supports associative arrays. In an associative array, we can associate any key or index we want with each value.

Check Also

Difference Between Java and WordPress

Java and WordPress are very much different, this is an attempt to compare and see …

Leave a Reply

Your email address will not be published. Required fields are marked *