{"id":50318,"date":"2025-10-12T17:16:17","date_gmt":"2025-10-12T17:16:17","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=50318"},"modified":"2025-10-12T17:16:18","modified_gmt":"2025-10-12T17:16:18","slug":"computer-science-array-vs-associative-array","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/computer-science-array-vs-associative-array\/","title":{"rendered":"Computer science: array vs associative array"},"content":{"rendered":"<h2>Tutoring computer science, data storage types are topical. The tutor mentions associative arrays.<\/h2>\n<p>\nAn array is a data type: in particular, it&#8217;s a means of storing multiple data values. Typically, if it&#8217;s just called an array, the values are understood to be organized by order: the zeroth element, the first element, the second, and so on. Note this produces pairs of data: (0, something), (1, something_else), etc. In such an array, however, the positions might be implicit: [something, something_else,&#8230;]<\/p>\n<p>\nWith an associative array, the pairs of data are based on an attribute and its value. Then, the array might be like this: [(height, 180),(eye_color, brown), (age,27)].<\/p>\n<p>\nSource:<\/p>\n<p>\n<a href=\"https:\/\/www.php.net\/manual\/en\/language.types.array.php\">php.net\/manual<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Tutoring computer science, data storage types are topical. The tutor mentions associative arrays. An array is a data type: in particular, it&#8217;s a means of storing multiple data values. Typically, if it&#8217;s just called an array, the values are understood &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/computer-science-array-vs-associative-array\/\"> <span class=\"screen-reader-text\">Computer science: array vs associative array<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,3786],"tags":[],"class_list":["post-50318","post","type-post","status-publish","format-standard","hentry","category-computer-science","category-web-wordpress-coding-etc"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/50318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=50318"}],"version-history":[{"count":3,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/50318\/revisions"}],"predecessor-version":[{"id":50321,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/50318\/revisions\/50321"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=50318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=50318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=50318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}