--- title: Arrays --- ## Arrays ### Types Of Arrays In PHP there are three types of arrays: Indexed Arrays, Associative arrays, and Multidimensional arrays. ### Indexed Array Example An indexed array accesses objects by index number. ```PHP "0","code"=>"1","camp"=>"2"); ``` `$freecodecamp['free']` would return "0", `$freecodecamp['code']` would return "1", `$freecodecamp['camp']` would return "2", ### Multidimensional Array Example A multidimensional array is an array that contains other arrays. ```PHP "0","code"=>"1","camp"=>"2"),array("free"=>"0","code"=>"1","camp"=>"2"),array("free"=>"0","code"=>"1","camp"=>"2")); ``` #### More Information: * php.net arrays manual