Dictionary¶
A dictionary is a data structure that holds a collection of values with a unique identifier. Each identifier is a integer or a string and may be other types in rarer occasions. The related values may be of any type.
In PHP, a dictionary structure relies often on the array data structure.
<?php
$dictionary = array('a' => 'blue',
'b' => 'pink',
'c' => array('green', 'yellow'),
);
?>