{"id":1358,"date":"2025-08-04T07:59:48","date_gmt":"2025-08-04T07:59:48","guid":{"rendered":"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/"},"modified":"2025-08-04T07:59:48","modified_gmt":"2025-08-04T07:59:48","slug":"arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions","status":"publish","type":"post","link":"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/","title":{"rendered":"Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions"},"content":{"rendered":"<h1>Arrays in PHP: A Comprehensive Guide to Indexed, Associative, Multidimensional Arrays &amp; Functions \ud83d\ude80<\/h1>\n<h2>Executive Summary \u2728<\/h2>\n<p>This comprehensive <strong>PHP arrays tutorial<\/strong> aims to equip you with a thorough understanding of arrays in PHP, a fundamental data structure for organizing and manipulating data. We will journey through indexed arrays, where elements are accessed by numerical indices; associative arrays, using custom keys for data association; and multidimensional arrays, enabling the creation of complex data structures. Furthermore, we&#8217;ll explore a range of powerful built-in PHP array functions that simplify common tasks like sorting, searching, and modifying array content. By the end of this guide, you&#8217;ll be confident in leveraging PHP arrays to build robust and efficient web applications.<\/p>\n<p>Arrays are the unsung heroes of PHP, often working behind the scenes to manage data with elegance and efficiency. From simple lists of names to complex configurations, arrays allow us to organize information in a structured way. But mastering arrays goes beyond just creating them \u2013 it\u2019s about understanding their different types, learning how to manipulate their contents, and leveraging the power of PHP\u2019s built-in array functions.<\/p>\n<h2>Indexed Arrays in PHP \ud83d\udd22<\/h2>\n<p>Indexed arrays in PHP store elements with a numeric index, starting at 0.  They&#8217;re the simplest type of array and are excellent for representing lists or sequences of data where order matters.<\/p>\n<ul>\n<li>\ud83d\udca1 Elements are accessed using their numerical index (e.g., `$myArray[0]`).<\/li>\n<li>\ud83d\udca1 The index always starts at 0.<\/li>\n<li>\ud83d\udca1 Can be created manually or automatically with functions like `range()`.<\/li>\n<li>\ud83d\udca1 Useful for storing lists of data where order is important.<\/li>\n<li>\ud83d\udca1 Easily iterated through using `for` loops.<\/li>\n<\/ul>\n<p><strong>Example: Creating and Accessing an Indexed Array<\/strong><\/p>\n<pre><code class=\"language-php\">\n    &lt;?php\n    \/\/ Creating an indexed array\n    $colors = array(\"Red\", \"Green\", \"Blue\");\n\n    \/\/ Accessing elements\n    echo $colors[0]; \/\/ Output: Red\n    echo $colors[1]; \/\/ Output: Green\n    echo $colors[2]; \/\/ Output: Blue\n\n    \/\/Another way to create an Indexed Array:\n    $numbers = [1, 2, 3, 4, 5];\n    echo $numbers[3]; \/\/output: 4\n\n    \/\/ Using a loop to iterate\n    for ($i = 0; $i &lt; count($colors); $i++) {\n        echo \"Color at index \" . $i . \" is: \" . $colors[$i] . \"&lt;br&gt;\";\n    }\n    ?&gt;\n    <\/code><\/pre>\n<h2>Associative Arrays in PHP \ud83e\udd1d<\/h2>\n<p>Associative arrays, unlike indexed arrays, use named keys to identify values. This makes them perfect for representing data records where you want to associate specific pieces of information with descriptive labels. Think of them as dictionaries or hashmaps.<\/p>\n<ul>\n<li>\ud83d\udca1 Elements are accessed using their key (e.g., `$myArray[&#8220;name&#8221;]`).<\/li>\n<li>\ud83d\udca1 Keys can be strings or integers.<\/li>\n<li>\ud83d\udca1 Useful for representing records or key-value pairs.<\/li>\n<li>\ud83d\udca1 Iterated through using `foreach` loops.<\/li>\n<li>\ud83d\udca1 Make your code more readable by labeling elements.<\/li>\n<\/ul>\n<p><strong>Example: Creating and Accessing an Associative Array<\/strong><\/p>\n<pre><code class=\"language-php\">\n    &lt;?php\n    \/\/ Creating an associative array\n    $student = array(\n        \"name\" =&gt; \"Alice\",\n        \"age\" =&gt; 20,\n        \"major\" =&gt; \"Computer Science\"\n    );\n\n    \/\/ Accessing elements\n    echo \"Name: \" . $student[\"name\"] . \"&lt;br&gt;\"; \/\/ Output: Name: Alice\n    echo \"Age: \" . $student[\"age\"] . \"&lt;br&gt;\";   \/\/ Output: Age: 20\n    echo \"Major: \" . $student[\"major\"] . \"&lt;br&gt;\"; \/\/ Output: Major: Computer Science\n\n    \/\/ Using a foreach loop to iterate\n    foreach ($student as $key =&gt; $value) {\n        echo ucfirst($key) . \": \" . $value . \"&lt;br&gt;\";\n    }\n    ?&gt;\n    <\/code><\/pre>\n<h2>Multidimensional Arrays in PHP \ud83d\udcc8<\/h2>\n<p>Multidimensional arrays are arrays containing one or more arrays. This powerful structure allows you to represent complex, hierarchical data, like spreadsheets, matrices, or even game boards. They are particularly useful when dealing with data that has multiple dimensions or relationships.<\/p>\n<ul>\n<li>\ud83d\udca1 Arrays containing other arrays as elements.<\/li>\n<li>\ud83d\udca1 Accessed using multiple indices (e.g., `$myArray[0][1]`).<\/li>\n<li>\ud83d\udca1 Useful for representing tables, matrices, or hierarchical data.<\/li>\n<li>\ud83d\udca1 Can have any number of dimensions.<\/li>\n<li>\ud83d\udca1 Can be combined with associative arrays for added clarity.<\/li>\n<\/ul>\n<p><strong>Example: Creating and Accessing a Multidimensional Array<\/strong><\/p>\n<pre><code class=\"language-php\">\n    &lt;?php\n    \/\/ Creating a multidimensional array (a table)\n    $students = array(\n        array(\"Alice\", 20, \"Computer Science\"),\n        array(\"Bob\", 22, \"Engineering\"),\n        array(\"Charlie\", 19, \"Mathematics\")\n    );\n\n    \/\/ Accessing elements\n    echo $students[0][0]; \/\/ Output: Alice\n    echo $students[1][2]; \/\/ Output: Engineering\n\n    \/\/ Iterating through the array\n    for ($i = 0; $i &lt; count($students); $i++) {\n        echo \"Student \" . ($i + 1) . \":&lt;br&gt;\";\n        echo \"Name: \" . $students[$i][0] . \"&lt;br&gt;\";\n        echo \"Age: \" . $students[$i][1] . \"&lt;br&gt;\";\n        echo \"Major: \" . $students[$i][2] . \"&lt;br&gt;&lt;br&gt;\";\n    }\n    ?&gt;\n    <\/code><\/pre>\n<h2>Essential PHP Array Functions \u2705<\/h2>\n<p>PHP provides a rich set of built-in functions for manipulating arrays. These functions can greatly simplify common tasks and improve your code&#8217;s efficiency. Let&#8217;s explore some of the most frequently used ones.<\/p>\n<ul>\n<li>\ud83d\udca1 <strong>`count()`<\/strong>: Returns the number of elements in an array.<\/li>\n<li>\ud83d\udca1 <strong>`array_push()`<\/strong>: Adds one or more elements to the end of an array.<\/li>\n<li>\ud83d\udca1 <strong>`array_pop()`<\/strong>: Removes the last element from an array.<\/li>\n<li>\ud83d\udca1 <strong>`array_shift()`<\/strong>: Removes the first element from an array.<\/li>\n<li>\ud83d\udca1 <strong>`array_unshift()`<\/strong>: Adds one or more elements to the beginning of an array.<\/li>\n<li>\ud83d\udca1 <strong>`array_merge()`<\/strong>: Merges two or more arrays into one.<\/li>\n<li>\ud83d\udca1 <strong>`array_keys()`<\/strong>: Returns all the keys of an array.<\/li>\n<li>\ud83d\udca1 <strong>`array_values()`<\/strong>: Returns all the values of an array.<\/li>\n<li>\ud83d\udca1 <strong>`in_array()`<\/strong>: Checks if a value exists in an array.<\/li>\n<li>\ud83d\udca1 <strong>`array_search()`<\/strong>: Searches an array for a given value and returns its key.<\/li>\n<li>\ud83d\udca1 <strong>`sort()`<\/strong>: Sorts an array in ascending order.<\/li>\n<li>\ud83d\udca1 <strong>`rsort()`<\/strong>: Sorts an array in descending order.<\/li>\n<\/ul>\n<p><strong>Examples: Using Common Array Functions<\/strong><\/p>\n<pre><code class=\"language-php\">\n    &lt;?php\n    $numbers = array(1, 2, 3);\n\n    \/\/ count()\n    echo \"Number of elements: \" . count($numbers) . \"&lt;br&gt;\"; \/\/ Output: Number of elements: 3\n\n    \/\/ array_push()\n    array_push($numbers, 4, 5);\n    print_r($numbers); \/\/ Output: Array ( [0] =&gt; 1 [1] =&gt; 2 [2] =&gt; 3 [3] =&gt; 4 [4] =&gt; 5 )\n\n    \/\/ array_pop()\n    array_pop($numbers);\n    print_r($numbers); \/\/ Output: Array ( [0] =&gt; 1 [1] =&gt; 2 [2] =&gt; 3 [3] =&gt; 4 )\n\n    \/\/ in_array()\n    if (in_array(3, $numbers)) {\n        echo \"3 is in the array&lt;br&gt;\"; \/\/ Output: 3 is in the array\n    }\n\n    \/\/ sort()\n    sort($numbers);\n    print_r($numbers); \/\/ Output: Array ( [0] =&gt; 1 [1] =&gt; 2 [2] =&gt; 3 [3] =&gt; 4 )\n    ?&gt;\n    <\/code><\/pre>\n<h2>Array Destructuring in PHP 7.1+ \ud83c\udfaf<\/h2>\n<p>Array destructuring, introduced in PHP 7.1, offers a concise way to extract values from arrays into distinct variables. This can significantly improve code readability and reduce boilerplate, particularly when dealing with functions that return arrays or when working with complex data structures.<\/p>\n<ul>\n<li>\ud83d\udca1 Provides a shorthand syntax for assigning array values to variables.<\/li>\n<li>\ud83d\udca1 Simplifies code and improves readability.<\/li>\n<li>\ud83d\udca1 Works with both indexed and associative arrays.<\/li>\n<li>\ud83d\udca1 Can be used to ignore specific array elements.<\/li>\n<li>\ud83d\udca1 Especially useful when working with functions that return arrays.<\/li>\n<\/ul>\n<p><strong>Examples: Array Destructuring<\/strong><\/p>\n<pre><code class=\"language-php\">\n    &lt;?php\n    \/\/ Indexed array destructuring\n    $user = ['John', 'Doe', 30];\n    [$firstName, $lastName, $age] = $user;\n\n    echo \"First Name: \" . $firstName . \"&lt;br&gt;\"; \/\/ Output: First Name: John\n    echo \"Last Name: \" . $lastName . \"&lt;br&gt;\";  \/\/ Output: Last Name: Doe\n    echo \"Age: \" . $age . \"&lt;br&gt;\";         \/\/ Output: Age: 30\n\n    \/\/ Associative array destructuring (PHP 7.1+)\n    $person = ['name' =&gt; 'Alice', 'city' =&gt; 'New York'];\n    ['name' =&gt; $name, 'city' =&gt; $city] = $person;\n\n    echo \"Name: \" . $name . \"&lt;br&gt;\";   \/\/ Output: Name: Alice\n    echo \"City: \" . $city . \"&lt;br&gt;\";   \/\/ Output: City: New York\n\n    \/\/ Ignoring elements\n    $data = [1, 2, 3, 4, 5];\n    [$first, , $third, , $fifth] = $data; \/\/ Skip second and fourth elements\n\n    echo \"First: \" . $first . \"&lt;br&gt;\";   \/\/ Output: First: 1\n    echo \"Third: \" . $third . \"&lt;br&gt;\";   \/\/ Output: Third: 3\n    echo \"Fifth: \" . $fifth . \"&lt;br&gt;\";   \/\/ Output: Fifth: 5\n    ?&gt;\n    <\/code><\/pre>\n<h2>FAQ \u2753<\/h2>\n<h3>Q: How do I check if a key exists in an associative array?<\/h3>\n<p>A: You can use the <code>array_key_exists()<\/code> function to determine if a specific key exists in an associative array. This function returns <code>true<\/code> if the key exists and <code>false<\/code> otherwise. It&#8217;s a reliable way to avoid errors when accessing potentially non-existent keys.<\/p>\n<pre><code class=\"language-php\">\n    &lt;?php\n    $user = ['name' =&gt; 'Alice', 'city' =&gt; 'New York'];\n    if (array_key_exists('name', $user)) {\n        echo \"The 'name' key exists.&lt;br&gt;\";\n    }\n    ?&gt;\n    <\/code><\/pre>\n<h3>Q: How do I remove duplicate values from an array?<\/h3>\n<p>A: The <code>array_unique()<\/code> function removes duplicate values from an array. It returns a new array with only unique values, preserving the original keys.  Be aware that it treats values as strings when comparing, so numerical differences might be ignored if they have the same string representation.<\/p>\n<pre><code class=\"language-php\">\n    &lt;?php\n    $numbers = [1, 2, 2, 3, 4, 4, 5];\n    $uniqueNumbers = array_unique($numbers);\n    print_r($uniqueNumbers); \/\/ Output: Array ( [0] =&gt; 1 [1] =&gt; 2 [3] =&gt; 3 [4] =&gt; 4 [6] =&gt; 5 )\n    ?&gt;\n    <\/code><\/pre>\n<h3>Q: How can I sort an associative array by its values while preserving the key-value relationship?<\/h3>\n<p>A:  PHP offers functions like <code>asort()<\/code> to sort associative arrays by their values while maintaining the association between keys and values. If you need to sort in reverse order, use <code>arsort()<\/code>.  These functions are crucial for scenarios where the key-value pairing is essential for data integrity.<\/p>\n<pre><code class=\"language-php\">\n    &lt;?php\n    $ages = ['Alice' =&gt; 30, 'Bob' =&gt; 25, 'Charlie' =&gt; 35];\n    asort($ages);\n    print_r($ages); \/\/ Output: Array ( [Bob] =&gt; 25 [Alice] =&gt; 30 [Charlie] =&gt; 35 )\n    ?&gt;\n    <\/code><\/pre>\n<h2>Conclusion \ud83c\udfaf<\/h2>\n<p>Mastering <strong>PHP arrays tutorial<\/strong> unlocks a new level of efficiency and power in your PHP development. From the simplicity of indexed arrays to the complexity of multidimensional structures, arrays provide the foundation for organizing and manipulating data effectively. By understanding the different types of arrays and leveraging PHP&#8217;s built-in array functions, you can write cleaner, more maintainable code and tackle complex data-driven challenges with confidence. Explore the vast ecosystem of array functions and experiment with different array structures to discover the best solutions for your specific needs. And remember, practice makes perfect \u2013 the more you work with arrays, the more intuitive they will become.<\/p>\n<h3>Tags<\/h3>\n<p>    arrays, PHP, tutorial, data structures, web development<\/p>\n<h3>Meta Description<\/h3>\n<p>    Master PHP arrays! This complete PHP arrays tutorial covers indexed, associative, &amp; multidimensional arrays, plus key functions. Boost your PHP skills now! \ud83c\udfaf<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arrays in PHP: A Comprehensive Guide to Indexed, Associative, Multidimensional Arrays &amp; Functions \ud83d\ude80 Executive Summary \u2728 This comprehensive PHP arrays tutorial aims to equip you with a thorough understanding of arrays in PHP, a fundamental data structure for organizing and manipulating data. We will journey through indexed arrays, where elements are accessed by numerical [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5412],"tags":[518,5440,307,5439,5441,5442,5438,5434,5427,204],"class_list":["post-1358","post","type-post","status-publish","format-standard","hentry","category-php","tag-array-manipulation","tag-associative-arrays","tag-data-structures","tag-indexed-arrays","tag-multidimensional-arrays","tag-php-array-functions","tag-php-arrays","tag-php-programming","tag-php-tutorial","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.0 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions - Developers Heaven<\/title>\n<meta name=\"description\" content=\"Master PHP arrays! This complete PHP arrays tutorial covers indexed, associative, &amp; multidimensional arrays, plus key functions. Boost your PHP skills now! \ud83c\udfaf\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions\" \/>\n<meta property=\"og:description\" content=\"Master PHP arrays! This complete PHP arrays tutorial covers indexed, associative, &amp; multidimensional arrays, plus key functions. Boost your PHP skills now! \ud83c\udfaf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Developers Heaven\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-04T07:59:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/via.placeholder.com\/600x400?text=Arrays+in+PHP+Indexed+Associative+Multidimensional+Arrays+and+Array+Functions\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/\",\"url\":\"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/\",\"name\":\"Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions - Developers Heaven\",\"isPartOf\":{\"@id\":\"https:\/\/developers-heaven.net\/blog\/#website\"},\"datePublished\":\"2025-08-04T07:59:48+00:00\",\"author\":{\"@id\":\"\"},\"description\":\"Master PHP arrays! This complete PHP arrays tutorial covers indexed, associative, & multidimensional arrays, plus key functions. Boost your PHP skills now! \ud83c\udfaf\",\"breadcrumb\":{\"@id\":\"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/developers-heaven.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/developers-heaven.net\/blog\/#website\",\"url\":\"https:\/\/developers-heaven.net\/blog\/\",\"name\":\"Developers Heaven\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/developers-heaven.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions - Developers Heaven","description":"Master PHP arrays! This complete PHP arrays tutorial covers indexed, associative, & multidimensional arrays, plus key functions. Boost your PHP skills now! \ud83c\udfaf","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:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/","og_locale":"en_US","og_type":"article","og_title":"Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions","og_description":"Master PHP arrays! This complete PHP arrays tutorial covers indexed, associative, & multidimensional arrays, plus key functions. Boost your PHP skills now! \ud83c\udfaf","og_url":"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/","og_site_name":"Developers Heaven","article_published_time":"2025-08-04T07:59:48+00:00","og_image":[{"url":"https:\/\/via.placeholder.com\/600x400?text=Arrays+in+PHP+Indexed+Associative+Multidimensional+Arrays+and+Array+Functions","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/","url":"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/","name":"Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions - Developers Heaven","isPartOf":{"@id":"https:\/\/developers-heaven.net\/blog\/#website"},"datePublished":"2025-08-04T07:59:48+00:00","author":{"@id":""},"description":"Master PHP arrays! This complete PHP arrays tutorial covers indexed, associative, & multidimensional arrays, plus key functions. Boost your PHP skills now! \ud83c\udfaf","breadcrumb":{"@id":"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/developers-heaven.net\/blog\/arrays-in-php-indexed-associative-multidimensional-arrays-and-array-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/developers-heaven.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Arrays in PHP: Indexed, Associative, Multidimensional Arrays, and Array Functions"}]},{"@type":"WebSite","@id":"https:\/\/developers-heaven.net\/blog\/#website","url":"https:\/\/developers-heaven.net\/blog\/","name":"Developers Heaven","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/developers-heaven.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/developers-heaven.net\/blog\/wp-json\/wp\/v2\/posts\/1358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers-heaven.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers-heaven.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/developers-heaven.net\/blog\/wp-json\/wp\/v2\/comments?post=1358"}],"version-history":[{"count":0,"href":"https:\/\/developers-heaven.net\/blog\/wp-json\/wp\/v2\/posts\/1358\/revisions"}],"wp:attachment":[{"href":"https:\/\/developers-heaven.net\/blog\/wp-json\/wp\/v2\/media?parent=1358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers-heaven.net\/blog\/wp-json\/wp\/v2\/categories?post=1358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers-heaven.net\/blog\/wp-json\/wp\/v2\/tags?post=1358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}