{"id":4543,"date":"2022-08-02T08:57:09","date_gmt":"2022-08-02T08:57:09","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4543"},"modified":"2022-08-02T08:58:31","modified_gmt":"2022-08-02T08:58:31","slug":"what-are-the-types-of-arrays-in-php","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/","title":{"rendered":"What are the types of arrays in PHP ?"},"content":{"rendered":"<p style=\"text-align: justify;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4544\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays.png\" alt=\"\" width=\"1359\" height=\"849\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays.png 1359w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays-300x187.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays-1024x640.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays-768x480.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays-390x244.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays-820x512.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays-1180x737.png 1180w\" sizes=\"(max-width: 1359px) 100vw, 1359px\" \/><\/p>\n<ul style=\"text-align: justify;\">\n<li>In PHP an array is a type of data structure that allows us to store multiple elements of similar data type under a single variable thereby saving us the effort of creating a different variable for every data.<\/li>\n<li>Using their index or key arrays are helpful to create a list of elements of similar types, which can be accessed.<\/li>\n<li>Suppose accordingly we want to store five names and print them and it can be easily done by the use of five different string variables.<\/li>\n<li>Instead of five string variables, the number rises to a hundred, then it would be really difficult for the developer or user to create so many different variables.<\/li>\n<li>Also using an index or a key array comes into play and helps us to store every element within a single variable and also allows easy access.<\/li>\n<li>In PHP an array is created using array() function and basically there three types, they are<\/li>\n<\/ul>\n<ol style=\"text-align: justify;\">\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Indexed array<\/li>\n<li>Associative array<\/li>\n<li>Multidimensional array<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2 id=\"indexed-array\" style=\"text-align: justify;\">Indexed array<\/h2>\n<ul style=\"text-align: justify;\">\n<li>Indexed array is represented by number which starts from 0 and we can store integer, object and string in the PHP array.<\/li>\n<li>By default, all PHP array elements are assigned to an index number.<\/li>\n<\/ul>\n<h3 id=\"sample-code\" style=\"text-align: justify;\">Sample Code<\/h3>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\"><?php  <br\/>$season=array(&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;);  <br\/>echo &quot;Month are: $month[0], $month[1], $month[2] and $month[3]&quot;;  <br\/>?>  <\/code><\/pre> <\/div>\n<h3 id=\"output\" style=\"text-align: justify;\">Output<\/h3>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4545\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/indexed-array.png\" alt=\"\" width=\"1115\" height=\"158\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/indexed-array.png 1115w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/indexed-array-300x43.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/indexed-array-1024x145.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/indexed-array-768x109.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/indexed-array-390x55.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/indexed-array-820x116.png 820w\" sizes=\"(max-width: 1115px) 100vw, 1115px\" \/><\/p>\n<h2 id=\"associative-array\" style=\"text-align: justify;\">Associative Array<\/h2>\n<ul style=\"text-align: justify;\">\n<li>Associative arrays are similar to the indexed arrays but instead of linear storage, every value can be assigned with a user-defined key of string type.<\/li>\n<li>In PHP we can associate name with each array elements by using => symbol.<\/li>\n<\/ul>\n<h3 id=\"sample-code-2\" style=\"text-align: justify;\">Sample Code<\/h3>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\"><?php    <br\/>$salary[&quot;Venkat&quot;]=&quot;350000&quot;;    <br\/>$salary[&quot;Kishore&quot;]=&quot;450000&quot;;    <br\/>$salary[&quot;Nizar&quot;]=&quot;200000&quot;;    <br\/>echo &quot;Venkat salary: &quot;.$salary[&quot;Venkat&quot;].&quot;<br\/>&quot;;  <br\/>echo &quot;Kishore salary: &quot;.$salary[&quot;Kishore&quot;].&quot;<br\/>&quot;;  <br\/>echo &quot;Nizar salary: &quot;.$salary[&quot;Nizar&quot;].&quot;<br\/>&quot;;  <br\/>?>    <\/code><\/pre> <\/div>\n<h3 id=\"output-2\" style=\"text-align: justify;\">Output<\/h3>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4546\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/associative-array.png\" alt=\"\" width=\"1150\" height=\"292\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/associative-array.png 1150w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/associative-array-300x76.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/associative-array-1024x260.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/associative-array-768x195.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/associative-array-390x99.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/associative-array-820x208.png 820w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/p>\n<h2 id=\"multidimensional-array\" style=\"text-align: justify;\">Multidimensional Array<\/h2>\n<ul style=\"text-align: justify;\">\n<li>PHP multidimensional array is otherwise known as array of arrays and allows you to store tabular data in an array.<\/li>\n<li>In the form of matrix PHP multidimensional array can be represented which is represented by row * column.<\/li>\n<\/ul>\n<h3 id=\"sample-code-3\" style=\"text-align: justify;\">Sample Code<\/h3>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">$emp = array  <br\/>  (  <br\/>  array(1,&quot;Venkat&quot;,400000),  <br\/>  array(2,&quot;Kishore&quot;,500000),  <br\/>  array(3,&quot;Nizar&quot;,300000)  <br\/>  );  <\/code><\/pre> <\/div>\n<h3 id=\"output-3\" style=\"text-align: justify;\">Output<\/h3>\n<table width=\"0\">\n<tbody>\n<tr>\n<td width=\"215\">\u00a0<\/p>\n<p>ID<\/td>\n<td width=\"215\">\u00a0<\/p>\n<p>Name<\/td>\n<td width=\"215\">\u00a0<\/p>\n<p>Salary<\/td>\n<\/tr>\n<tr>\n<td width=\"215\">\u00a0<\/p>\n<p>1<\/td>\n<td width=\"215\">\u00a0<\/p>\n<p>Venkat<\/td>\n<td width=\"215\">\u00a0<\/p>\n<p>400000<\/td>\n<\/tr>\n<tr>\n<td width=\"215\">\u00a0<\/p>\n<p>2<\/td>\n<td width=\"215\">\u00a0<\/p>\n<p>Kishore<\/td>\n<td width=\"215\">\u00a0<\/p>\n<p>500000<\/td>\n<\/tr>\n<tr>\n<td width=\"215\">\u00a0<\/p>\n<p>3<\/td>\n<td width=\"215\">\u00a0<\/p>\n<p>Nizar<\/td>\n<td width=\"215\">\u00a0<\/p>\n<p>300000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>In PHP an array is a type of data structure that allows us to store multiple elements of similar data type under a single variable thereby saving us the effort of creating a different variable for every data. Using their index or key arrays are helpful to create a list of elements of similar types, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8182],"tags":[17689,17688,17690,17686,17696,17695,17687,17685,17684,17691,17697,17694,17692,17693],"class_list":["post-4543","post","type-post","status-publish","format-standard","hentry","category-php","tag-accessing-array-elements-in-php","tag-array-in-php-example","tag-array-push-php","tag-associative-array-in-php","tag-how-many-types-array-in-php","tag-how-many-types-of-arrays-are-there","tag-indexed-array-in-php","tag-multidimensional-array-in-php","tag-php-array-functions","tag-php-array-length","tag-what-are-some-examples-of-arrays","tag-what-are-the-types-of-arrays","tag-what-are-the-types-of-arrays-in-php","tag-what-is-array-in-php-with-example"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What are the types of arrays in PHP ? - PHP Arrays and the Array Types<\/title>\n<meta name=\"description\" content=\"What are the types of arrays in PHP ? - In PHP an array is a type of data structure that allows us to store multiple elements of similar data type\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are the types of arrays in PHP ? - PHP Arrays and the Array Types\" \/>\n<meta property=\"og:description\" content=\"What are the types of arrays in PHP ? - In PHP an array is a type of data structure that allows us to store multiple elements of similar data type\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-02T08:57:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-02T08:58:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays.png\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\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:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/\"},\"author\":{\"name\":\"webmaster\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\"},\"headline\":\"What are the types of arrays in PHP ?\",\"datePublished\":\"2022-08-02T08:57:09+00:00\",\"dateModified\":\"2022-08-02T08:58:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/\"},\"wordCount\":459,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/types-of-arrays.png\",\"keywords\":[\"accessing array elements in php\",\"array in php example\",\"array push php\",\"associative array in php\",\"how many types array in php\",\"how many types of arrays are there\",\"indexed array in php\",\"multidimensional array in php\",\"php array functions\",\"php array length\",\"what are some examples of arrays\",\"what are the types of arrays\",\"what are the types of arrays in php\",\"what is array in php with example\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/\",\"name\":\"What are the types of arrays in PHP ? - PHP Arrays and the Array Types\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/types-of-arrays.png\",\"datePublished\":\"2022-08-02T08:57:09+00:00\",\"dateModified\":\"2022-08-02T08:58:31+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What are the types of arrays in PHP ? - In PHP an array is a type of data structure that allows us to store multiple elements of similar data type\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/php\\\/what-are-the-types-of-arrays-in-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/types-of-arrays.png\",\"contentUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/types-of-arrays.png\",\"width\":1359,\"height\":849},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\"],\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/webmaster\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What are the types of arrays in PHP ? - PHP Arrays and the Array Types","description":"What are the types of arrays in PHP ? - In PHP an array is a type of data structure that allows us to store multiple elements of similar data type","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:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/","og_locale":"en_US","og_type":"article","og_title":"What are the types of arrays in PHP ? - PHP Arrays and the Array Types","og_description":"What are the types of arrays in PHP ? - In PHP an array is a type of data structure that allows us to store multiple elements of similar data type","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/","og_site_name":"Wikitechy","article_published_time":"2022-08-02T08:57:09+00:00","article_modified_time":"2022-08-02T08:58:31+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays.png","type":"","width":"","height":""}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/"},"author":{"name":"webmaster","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"headline":"What are the types of arrays in PHP ?","datePublished":"2022-08-02T08:57:09+00:00","dateModified":"2022-08-02T08:58:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/"},"wordCount":459,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays.png","keywords":["accessing array elements in php","array in php example","array push php","associative array in php","how many types array in php","how many types of arrays are there","indexed array in php","multidimensional array in php","php array functions","php array length","what are some examples of arrays","what are the types of arrays","what are the types of arrays in php","what is array in php with example"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/","name":"What are the types of arrays in PHP ? - PHP Arrays and the Array Types","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays.png","datePublished":"2022-08-02T08:57:09+00:00","dateModified":"2022-08-02T08:58:31+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What are the types of arrays in PHP ? - In PHP an array is a type of data structure that allows us to store multiple elements of similar data type","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-are-the-types-of-arrays-in-php\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays.png","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/types-of-arrays.png","width":1359,"height":849},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4543"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4543\/revisions"}],"predecessor-version":[{"id":4548,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4543\/revisions\/4548"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}