Hash |
A hash table is a one-to-one unique mapping between a key-value pair. A hash table may contain zero or more sets, separated by commas.
To retrieve a value from the hash table specify the key (enclosed in square brackets) after the hash table's identifier.
$speedColors = { "fast" : "green", "slow" : "red", "normal" : "yellow" }; PRINT $speedColors["slow"]; /* red */ PRINT $speedColors["foo"]; /* (null) */