Associative Array


Associative or Named Arrays are maps where the keys can be either strings or numbers.


examples/intro/associative_array.php
<h1>Named Arrays</h1>
<?php
$length = array("php" => 3, "mysql" => 5, "linux" => 5);
print $length["php"];

print "x";
print $length["xyz"];
print "x";
?>