{"id":63,"date":"2020-12-10T19:08:48","date_gmt":"2020-12-10T19:08:48","guid":{"rendered":"https:\/\/www.kindsonthegenius.com\/php\/?p=63"},"modified":"2026-10-29T01:28:13","modified_gmt":"2026-10-29T01:28:13","slug":"php-arrays","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/","title":{"rendered":"PHP &#8211; Arrays"},"content":{"rendered":"<p>An array is a data structure used to hold one or more values of similar data types. An array is define using a single name. So for instance, if you have 100 different student scores, you would not have to create 100 different variables, you just use a single variable name.<\/p>\n<p>In this tutorial, we would examine the following three different types of arrays:<\/p>\n<ol>\n<li><a href=\"#t1\">Numeric Arrays<\/a><\/li>\n<li><a href=\"#t2\">Associative Arrays<\/a><\/li>\n<li><a href=\"#t3\">Multidimensional Arrays<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t1\">1. Numeric Arrays<\/strong><\/h4>\n<p>These are arrays that has numeric index (not that they store numbers!) Numeric arrays could hold any kind of values like strings, numbers and objects. Let&#8217;s take an example to clarify it. In the code below, two numeric arrays are created and printed out to the screen.<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #557799;\">&lt;?php<\/span>\r\n    <span style=\"color: #888888;\">\/\/declaring the array is not mandatory<\/span>\r\n    <span style=\"color: #996633;\">$scores<\/span>[<span style=\"color: #0000dd; font-weight: bold;\">0<\/span>] <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">56<\/span>;\r\n    <span style=\"color: #996633;\">$scores<\/span>[<span style=\"color: #0000dd; font-weight: bold;\">1<\/span>] <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">98<\/span>;\r\n    <span style=\"color: #996633;\">$scores<\/span>[<span style=\"color: #0000dd; font-weight: bold;\">2<\/span>] <span style=\"color: #333333;\">=<\/span> <span style=\"color: #6600ee; font-weight: bold;\">79.6<\/span>;\r\n\r\n    <span style=\"color: #008800; font-weight: bold;\">foreach<\/span>(<span style=\"color: #996633;\">$scores<\/span> <span style=\"color: #008800; font-weight: bold;\">as<\/span> <span style=\"color: #996633;\">$score<\/span>){\r\n        <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"<\/span><span style=\"background-color: #eeeeee;\">$score<\/span><span style=\"background-color: #fff0f0;\"> &lt;br&gt;\"<\/span>;\r\n    }\r\n\r\n    <span style=\"color: #888888;\">\/\/a numeric array of strings<\/span>\r\n    <span style=\"color: #996633;\">$names<\/span> <span style=\"color: #333333;\">=<\/span> <span style=\"color: #008800; font-weight: bold;\">array<\/span>(<span style=\"background-color: #fff0f0;\">\"MacMills\"<\/span>, <span style=\"background-color: #fff0f0;\">\"Trust\"<\/span>, <span style=\"background-color: #fff0f0;\">\"Janai\"<\/span>);\r\n    <span style=\"color: #008800; font-weight: bold;\">foreach<\/span>(<span style=\"color: #996633;\">$names<\/span> <span style=\"color: #008800; font-weight: bold;\">as<\/span> <span style=\"color: #996633;\">$name<\/span>){\r\n        <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"<\/span><span style=\"background-color: #eeeeee;\">$name<\/span><span style=\"background-color: #fff0f0;\"> &lt;br&gt;\"<\/span>;\r\n    }\r\n<span style=\"color: #557799;\">?&gt;<\/span>     \r\n<\/pre>\n<p>As an exercise, execute this code see what output you have.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t2\">2. Associative Arrays<\/strong><\/h4>\n<p>The associative arrays are similar to the numeric arrays. But unlike the numeric arrays, the associative arrays have their indexes as strings. This means that you can relate the indexes with their values.<\/p>\n<p>For example,\u00a0 assuming we want to store the test scores of students, we could use an associative array where we have the names of the students as the keys(or indexes) and the values would be the scores of the students.<\/p>\n<p>The code below illustrates this:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #557799;\">&lt;?php<\/span>\r\n    <span style=\"color: #888888;\">\/\/Creating an associative array - Method 1<\/span>\r\n    <span style=\"color: #996633;\">$scores<\/span> <span style=\"color: #333333;\">=<\/span> <span style=\"color: #008800; font-weight: bold;\">array<\/span>(<span style=\"background-color: #fff0f0;\">\"Kindson\"<\/span><span style=\"color: #333333;\">=&gt;<\/span><span style=\"color: #6600ee; font-weight: bold;\">99.9<\/span>, <span style=\"background-color: #fff0f0;\">\"Saff\"<\/span><span style=\"color: #333333;\">=&gt;<\/span><span style=\"color: #6600ee; font-weight: bold;\">89.4<\/span>, <span style=\"background-color: #fff0f0;\">\"Ottie\"<\/span><span style=\"color: #333333;\">=&gt;<\/span><span style=\"color: #6600ee; font-weight: bold;\">87.9<\/span>);\r\n\r\n    <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Kindson's score is \"<\/span><span style=\"color: #333333;\">.<\/span> <span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">'Kindson'<\/span>] <span style=\"color: #333333;\">.<\/span> <span style=\"background-color: #fff0f0;\">\"&lt;br \/&gt;\"<\/span>;\r\n    <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Saff's score is \"<\/span><span style=\"color: #333333;\">.<\/span>  <span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">'Saff'<\/span>]<span style=\"color: #333333;\">.<\/span> <span style=\"background-color: #fff0f0;\">\"&lt;br \/&gt;\"<\/span>;\r\n    <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Ottie's score is \"<\/span><span style=\"color: #333333;\">.<\/span>  <span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">'Ottie'<\/span>]<span style=\"color: #333333;\">.<\/span> <span style=\"background-color: #fff0f0;\">\"&lt;br \/&gt;\"<\/span>;\r\n    \r\n    <span style=\"color: #888888;\">\/\/Method 2<\/span>\r\n    <span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">\"Kindson\"<\/span>] <span style=\"color: #333333;\">=<\/span> <span style=\"color: #6600ee; font-weight: bold;\">99.9<\/span>;\r\n    <span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">\"Saff\"<\/span>] <span style=\"color: #333333;\">=<\/span> <span style=\"color: #6600ee; font-weight: bold;\">89.9<\/span>;\r\n    <span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">\"Ottie\"<\/span>] <span style=\"color: #333333;\">=<\/span> <span style=\"color: #6600ee; font-weight: bold;\">87.9<\/span>;\r\n<span style=\"color: #557799;\">?&gt;<\/span> \r\n<\/pre>\n<p>The result of this code is:<br \/>\n<!-- HTML generated using hilite.me --><\/p>\n<pre style=\"margin: 0; line-height: 125%;\">Kindson's score is 99.9\r\nSaff's score is 89.4\r\nOttie's score is 87.9\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t3\">3. Multidimensional Arrays<\/strong><\/h4>\n<p>A multidimensional array allows you to have arrays as elements of an array. We call this &#8220;array of arrays&#8221;. To access values in multidimensional arrays, we use multiple indexes.<\/p>\n<p>The example below expands on the previous example. In this case, Each element of $scores will be an associative array of 3 scores of that student on three different subjects. Take some time to understand it.<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #557799;\">&lt;?php<\/span>\r\n    <span style=\"color: #888888;\">\/\/Creating an multidimensinal array<\/span>\r\n    <span style=\"color: #996633;\">$scores<\/span> <span style=\"color: #333333;\">=<\/span> <span style=\"color: #008800; font-weight: bold;\">array<\/span>(\r\n    <span style=\"background-color: #fff0f0;\">\"Kindson\"<\/span><span style=\"color: #333333;\">=&gt;<\/span><span style=\"color: #008800; font-weight: bold;\">array<\/span>(<span style=\"background-color: #fff0f0;\">\"Physics\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">99.4<\/span>, <span style=\"background-color: #fff0f0;\">\"Math\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">84.3<\/span>, <span style=\"background-color: #fff0f0;\">\"Chemistry\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">98.6<\/span>),\r\n    <span style=\"background-color: #fff0f0;\">\"Saff\"<\/span><span style=\"color: #333333;\">=&gt;<\/span><span style=\"color: #008800; font-weight: bold;\">array<\/span>(<span style=\"background-color: #fff0f0;\">\"Physics\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">78.8<\/span>, <span style=\"background-color: #fff0f0;\">\"Math\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">56.8<\/span>, <span style=\"background-color: #fff0f0;\">\"Chemistry\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">59.6<\/span>),\r\n    <span style=\"background-color: #fff0f0;\">\"Ottie\"<\/span><span style=\"color: #333333;\">=&gt;<\/span><span style=\"color: #008800; font-weight: bold;\">array<\/span>(<span style=\"background-color: #fff0f0;\">\"Physics\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">85.9<\/span>, <span style=\"background-color: #fff0f0;\">\"Math\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">54.3<\/span>, <span style=\"background-color: #fff0f0;\">\"Chemistry\"<\/span> <span style=\"color: #333333;\">=&gt;<\/span> <span style=\"color: #6600ee; font-weight: bold;\">67.6<\/span>)\r\n);\r\n\r\n    <span style=\"color: #888888;\">\/\/Accessing elements of multidimensional array<\/span>\r\n    <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Kindson scored \"<\/span><span style=\"color: #333333;\">.<\/span><span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">\"Kindson\"<\/span>][<span style=\"background-color: #fff0f0;\">\"Physics\"<\/span>] <span style=\"color: #333333;\">.<\/span> <span style=\"background-color: #fff0f0;\">\" in Physics &lt;br&gt;\"<\/span>;\r\n    <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Saff scored \"<\/span><span style=\"color: #333333;\">.<\/span><span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">\"Saff\"<\/span>][<span style=\"background-color: #fff0f0;\">\"Math\"<\/span>] <span style=\"color: #333333;\">.<\/span> <span style=\"background-color: #fff0f0;\">\" in Math &lt;br&gt;\"<\/span>;\r\n    <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Ottie scored \"<\/span><span style=\"color: #333333;\">.<\/span><span style=\"color: #996633;\">$scores<\/span>[<span style=\"background-color: #fff0f0;\">\"Ottie\"<\/span>][<span style=\"background-color: #fff0f0;\">\"Chemistry\"<\/span>] <span style=\"color: #333333;\">.<\/span> <span style=\"background-color: #fff0f0;\">\" in Chemistry &lt;br&gt;\"<\/span>;\r\n<span style=\"color: #557799;\">?&gt;<\/span>  \r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>The output of this program is shown below:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">Kindson scored 99.4 in Physics\r\nSaff scored 56.8 in Math\r\nOttie scored 67.6 in Chemistry\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An array is a data structure used to hold one or more values of similar data types. An array is define using a single name. &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP - Arrays | Kindson The Genius<\/title>\n<meta name=\"description\" content=\"PHP - Arrays \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius. Free online.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kindsonthegenius.com\/php\/php-arrays\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP - Arrays | Kindson The Genius\" \/>\n<meta property=\"og:description\" content=\"PHP - Arrays \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius. Free online.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kindsonthegenius.com\/php\/php-arrays\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-10T19:08:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-29T01:28:13+00:00\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-arrays\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-arrays\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#\\\/schema\\\/person\\\/a2dcea4c76668e90e5842583fd5a5f60\"},\"headline\":\"PHP &#8211; Arrays\",\"datePublished\":\"2020-12-10T19:08:48+00:00\",\"dateModified\":\"2026-10-29T01:28:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-arrays\\\/\"},\"wordCount\":298,\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-arrays\\\/\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-arrays\\\/\",\"name\":\"PHP - Arrays | Kindson The Genius\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#website\"},\"datePublished\":\"2020-12-10T19:08:48+00:00\",\"dateModified\":\"2026-10-29T01:28:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#\\\/schema\\\/person\\\/a2dcea4c76668e90e5842583fd5a5f60\"},\"description\":\"PHP - Arrays \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius. Free online.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-arrays\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-arrays\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-arrays\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP &#8211; Arrays\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#website\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/\",\"name\":\"PHP Tutorial\",\"description\":\"Beginner to Expert With Practicals\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#\\\/schema\\\/person\\\/a2dcea4c76668e90e5842583fd5a5f60\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/author\\\/kindsonthegenius-3\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP - Arrays | Kindson The Genius","description":"PHP - Arrays \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius. Free online.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/","og_locale":"en_US","og_type":"article","og_title":"PHP - Arrays | Kindson The Genius","og_description":"PHP - Arrays \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius. Free online.","og_url":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/","og_site_name":"PHP Tutorial","article_published_time":"2020-12-10T19:08:48+00:00","article_modified_time":"2026-10-29T01:28:13+00:00","author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/#article","isPartOf":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/kindsonthegenius.com\/php\/#\/schema\/person\/a2dcea4c76668e90e5842583fd5a5f60"},"headline":"PHP &#8211; Arrays","datePublished":"2020-12-10T19:08:48+00:00","dateModified":"2026-10-29T01:28:13+00:00","mainEntityOfPage":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/"},"wordCount":298,"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/","url":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/","name":"PHP - Arrays | Kindson The Genius","isPartOf":{"@id":"https:\/\/kindsonthegenius.com\/php\/#website"},"datePublished":"2020-12-10T19:08:48+00:00","dateModified":"2026-10-29T01:28:13+00:00","author":{"@id":"https:\/\/kindsonthegenius.com\/php\/#\/schema\/person\/a2dcea4c76668e90e5842583fd5a5f60"},"description":"PHP - Arrays \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius. Free online.","breadcrumb":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kindsonthegenius.com\/php\/php-arrays\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kindsonthegenius.com\/php\/php-arrays\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kindsonthegenius.com\/php\/"},{"@type":"ListItem","position":2,"name":"PHP &#8211; Arrays"}]},{"@type":"WebSite","@id":"https:\/\/kindsonthegenius.com\/php\/#website","url":"https:\/\/kindsonthegenius.com\/php\/","name":"PHP Tutorial","description":"Beginner to Expert With Practicals","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kindsonthegenius.com\/php\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kindsonthegenius.com\/php\/#\/schema\/person\/a2dcea4c76668e90e5842583fd5a5f60","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"url":"https:\/\/kindsonthegenius.com\/php\/author\/kindsonthegenius-3\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":1,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/posts\/63\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}