To become a guest author contact at +91 95692 11851 (WhatsApp only)

Associative Arrays

Digital Knowledge Hub

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.


Leave a Reply

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